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);
        }
 public IHttpActionResult GetUserMessagesGroupBetween2Users(int UserId, int RecepId)
 {
     return(ResponseMessage(Request.CreateResponse(HttpStatusCode.OK, objProfileInfoService.GetUserMessagesGroupBetween2Users(UserId, RecepId))));
 }