public async Task <IActionResult> DeleteProjectDocument(DeleteProjectDocumentRequest 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 <DeleteProjectDocumentResponse> > DeleteProjectDocument(DeleteProjectDocumentRequest request)
        {
            await SetHeader();

            return(await _httpClient.PostJsonAsync <ApiResponse <DeleteProjectDocumentResponse> >(Constants.URI.ProjectsDocument.DeleteProjectDocument, request));
        }