public async Task <IActionResult> DeleteAsync(int id) { var result = await _docService.DeleteAsync(id); if (!result.Success) { return(BadRequest(new ErrorResource(result.Message))); } var docResource = _mapper.Map <Doc, DocResource>(result.Resource); return(Ok(docResource)); }
public async Task <UnifyResponseDto> DeleteAsync(long id) { await _docService.DeleteAsync(id); return(UnifyResponseDto.Success()); }