public IHttpActionResult Delete(int idEditora) { if (idEditora.Equals(null)) { return(BadRequest("Informe o ID da editora")); } _editoraRepository.Delete(idEditora); return(Ok()); }
public void RemoverEditora(Editora editora) { _editoraRepository.Delete(editora); }
public void Delete(int id) { _editoraRepository.Delete(id); }
public async Task Delete(int id) { await _repository.Delete(id); }