public void GetUserUnReadMessagesCount(int userId) { ProfileInfoService objProfileInfoService = new ProfileInfoService(); int userCount = objProfileInfoService.GetUnReadMessagesCountByUserId(userId); Clients.All.SetUserUnReadMessagesCount(userId, userCount); }
public IHttpActionResult GetUnReadMessagesCountByUserId(int UserId) { return(ResponseMessage(Request.CreateResponse(HttpStatusCode.OK, objProfileInfoService.GetUnReadMessagesCountByUserId(UserId)))); }