Example #1
0
 public int CountReadMessages(Guid chatId, Guid profileId)
 {
     try
     {
         return(_messagesRepository.CountReadMessages(chatId, profileId));
     }
     catch (SqlException exception)
     {
         var response = new HttpResponseMessage(HttpStatusCode.NotFound)
         {
             Content = new StringContent(exception.Message)
         };
         throw new HttpResponseException(response);
     }
 }