Esempio n. 1
0
 public async Task <IActionResult> DeleteContributors(DeleteContributorRequest request)
 {
     try
     {
         return(Ok(new Success(await Mediator.Send(request))));
     }
     catch (Exception exception)
     {
         return(Ok(new InternalServerError(exception)));
     }
 }
Esempio n. 2
0
        public async Task <ApiResponse <DeleteContributorResponse> > DeleteContributors(DeleteContributorRequest request)
        {
            await SetHeader();

            return(await _httpClient.PostJsonAsync <ApiResponse <DeleteContributorResponse> >(Constants.URI.Projects.DeleteContributors, request));
        }