Exemplo n.º 1
0
 public async Task <IActionResult> DeleteOwner(DeleteOwnerRequest request)
 {
     try
     {
         return(Ok(new Success(await Mediator.Send(request))));
     }
     catch (Exception exception)
     {
         return(Ok(new InternalServerError(exception)));
     }
 }
Exemplo n.º 2
0
        public async Task <ApiResponse <DeleteOwnerResponse> > DeleteOwner(DeleteOwnerRequest request)
        {
            await SetHeader();

            return(await _httpClient.PostJsonAsync <ApiResponse <DeleteOwnerResponse> >(Constants.URI.Owners.DeleteOwner, request));
        }