public IEnumerable <Chat> GetProfileChats(Guid id)
 {
     try
     {
         return(_profilesRepository.GetProfileChats(id).ToList());
     }
     catch (SqlException exception)
     {
         var response = new HttpResponseMessage(HttpStatusCode.NotFound)
         {
             Content = new StringContent(exception.Message)
         };
         throw new HttpResponseException(response);
     }
 }