Пример #1
0
 public IActionResult DeleteFriendshipById(int friendshipId)
 {
     try
     {
         Friend f = _friendService.DeleteFriendByID(friendshipId);
         return(Ok(f));
     }
     catch (APIException ex)
     {
         ErrorMessage err = new ErrorMessage {
             message = ex.Message
         };
         return(StatusCode(ex.StatusCode, err));
     }
 }