public Reply Get([FromUri] SessionData session) { try { _sessionService.Validate(session.UserId, session.SessionToken); } catch (InvalidSessionException ex) { return(new Reply { replyCode = (int)EnumReply.processFail, replyMessage = ex.Message }); } return(new ActionBarInfo { UnansweredFriendRequests = _friendRequestService.GetUnansweredCount(session.UserId), UnreadMessages = _messageService.GetUnreadMessagesCount(session.UserId), UnreadNotification = _notificationService.GetUnreadNotificationCount(session.UserId) }); }