userfriendsmanager.cs
来自「简单聊天系统,自己做的,有数据库.多多支持,做的不好,请大家原谅.」· CS 代码 · 共 42 行
CS
42 行
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 + =
减小字号Ctrl + -
显示快捷键?