public async Task <ActionResult> Delete(Guid id) { var bookToDelete = await _authorsService.GetOneAuthorAsync(id); if (bookToDelete == null) { return(NotFound()); } await _authorsService.Delete(id); return(NoContent()); }
public void Delete(Guid id) { service.Delete(id); }
public async Task <EntityDto> Delete(long id) { var deletedBook = await _authorsService.Delete(id); return(deletedBook); }
public void Delete([FromBody] AuthorViewModel model) { _authorsService.Delete(model); }