예제 #1
0
        public void GetUserMessages(bool isEditMode, int displayUserId, int userId)
        {
            ProfileInfoService   objProfileInfoService = new ProfileInfoService();
            List <ProfileInfoBO> userMessages          = new List <ProfileInfoBO>();

            if (isEditMode)
            {
                userMessages = objProfileInfoService.GetAllUserMessages(userId);
            }
            else
            {
                userMessages = objProfileInfoService.GetUserMessagesGroupBetween2Users(userId, displayUserId);
            }

            Clients.All.SetUserMessages(userId, userMessages);
        }
예제 #2
0
 public IHttpActionResult GetUserMessagesGroupBetween2Users(int UserId, int RecepId)
 {
     return(ResponseMessage(Request.CreateResponse(HttpStatusCode.OK, objProfileInfoService.GetUserMessagesGroupBetween2Users(UserId, RecepId))));
 }