public IActionResult Delete(string id) { var exist = _comentarios.GetComentario(id); if (exist == null) { return(NotFound()); } _comentarios.Remove(exist.Id); return(NoContent()); }
public ActionResult <List <Comentario> > Delete(string id, string idMonitoria) { var Comentario = _ComentarioService.Get(id); if (Comentario == null) { return(NotFound()); } _ComentarioService.Remove(Comentario.Id); return(_ComentarioService.GetByMonitoria(idMonitoria)); }