📄 userfriendsmanager.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
using NewChartDAL;
using NewChartModels;
namespace NewChartBLL
{
public class UserFriendsManager
{
public static IList<FriendsTypeInfo> GetFriendsType()
{
return UserFriendsService.GetFriendsType();
}
public static IList<UsersInfo> GetUsersById(int userId, int typeId)
{
List<UsersInfo> user = new List<UsersInfo>();
IList<UserFriendsInfo> uf = UserFriendsService.GetFriendsByUserIdAddTypeId(userId,typeId);
foreach (UserFriendsInfo uFriend in uf)
{
UsersInfo u = UsersService.GetUsersInfoById(uFriend.Friend.Id);
user.Add(u);
}
return user;
}
//public static IList<Users> GetUserById(int userId, int typeId)
//{
// List<Users> user = new List<Users>();
// IList<UserFriends> uf = UserFriendService.GetFriendIdByUserIdAndTypeId(userId, typeId);
// foreach (UserFriends userfriend in uf)
// {
// Users u = UserService.GetUserById(userfriend.Friend.Id);
// user.Add(u);
// }
// return user;
//}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -