public UserInfo[] Browse(string userid) { try { UserService userService = new UserService(); return userService.VisibleProfilesGet(userid).ToArray(); } catch (Exception e) { Logging.WriteToEventLog("USER BROWSE " + e.Message); return null; } }
public UserInfo[] BrowseWithChat(string userid, string NoOfChat) { try { UserService userService = new UserService(); UserInfo[] userInfos = userService.VisibleProfilesGet(userid).ToArray(); if (userInfos != null) { foreach(UserInfo userinfo in userInfos) { userinfo.Chats = userService.UserChatGet(userid, userinfo.UserID.ToString(), "0", NoOfChat); } } return userInfos; } catch (Exception e) { Logging.WriteToEventLog("USER BROWSE " + e.Message); return null; } }
public void GetVisibleProfilesDB() { IUserService userService = new UserService(); userService.VisibleProfilesGet("1"); }
public void VisibleProfilesGet() { IUserResource userResource = new MockUserResource(); IUserService userService = new UserService(userResource); List<UserInfo> users = userService.VisibleProfilesGet("1"); }