Esempio n. 1
0
 public IEnumerable <Chat> FindChats([FromBody] DataToFind data)
 {
     try
     {
         return(_chatsRepository.FindChats(data.Tokens, data.ProfileId));
     }
     catch (SqlException exception)
     {
         var response = new HttpResponseMessage(HttpStatusCode.NotFound)
         {
             Content = new StringContent(exception.Message)
         };
         throw new HttpResponseException(response);
     }
 }