예제 #1
0
        public IHttpActionResult Delete(int idEditora)
        {
            if (idEditora.Equals(null))
            {
                return(BadRequest("Informe o ID da editora"));
            }

            _editoraRepository.Delete(idEditora);
            return(Ok());
        }
예제 #2
0
 public void RemoverEditora(Editora editora)
 {
     _editoraRepository.Delete(editora);
 }
예제 #3
0
 public void Delete(int id)
 {
     _editoraRepository.Delete(id);
 }
예제 #4
0
 public async Task Delete(int id)
 {
     await _repository.Delete(id);
 }