예제 #1
0
        public void GetUserUnReadMessagesCount(int userId)
        {
            ProfileInfoService objProfileInfoService = new ProfileInfoService();
            int userCount = objProfileInfoService.GetUnReadMessagesCountByUserId(userId);

            Clients.All.SetUserUnReadMessagesCount(userId, userCount);
        }
예제 #2
0
 public IHttpActionResult GetUnReadMessagesCountByUserId(int UserId)
 {
     return(ResponseMessage(Request.CreateResponse(HttpStatusCode.OK, objProfileInfoService.GetUnReadMessagesCountByUserId(UserId))));
 }