Exemplo n.º 1
0
 public UnreadMessagesResultDataModel GetUnreadMessages(LoginSuccessDataModel obj)
 {
     using (var chatDb = new ChatDbEntities())
     {
         return(new UnreadMessagesResultDataModel
         {
             Messages = chatDb.GetUnreadMessages(obj.UserId).ToArray()
                        .Mapping <MessageDataModel>()
         });
     }
 }
Exemplo n.º 2
0
 public UnreadMessagesResultDataModel GetUnreadMessages(LoginSuccessDataModel obj)
 {
     return(_dataManagerFactory.CreateMessageDataManager().GetUnreadMessages(obj));
 }