public async Task <IActionResult> DeleteContributors(DeleteContributorRequest request) { try { return(Ok(new Success(await Mediator.Send(request)))); } catch (Exception exception) { return(Ok(new InternalServerError(exception))); } }
public async Task <ApiResponse <DeleteContributorResponse> > DeleteContributors(DeleteContributorRequest request) { await SetHeader(); return(await _httpClient.PostJsonAsync <ApiResponse <DeleteContributorResponse> >(Constants.URI.Projects.DeleteContributors, request)); }