Beispiel #1
0
 public void AddChatMember(Guid id, Guid personId)
 {
     try
     {
         _chatsRepository.AddChatMember(personId, id);
     }
     catch (SqlException exception)
     {
         var response = new HttpResponseMessage(HttpStatusCode.NotFound)
         {
             Content = new StringContent(exception.Message)
         };
         throw new HttpResponseException(response);
     }
 }