public IActionResult DeleteAgenda(int id) { _service.DeleteAgenda(id); if (_service.Invalido) { return(NotFound()); } return(Ok()); }
public JsonResult Delete(int IdAgenda) { AgendaService.DeleteAgenda(IdAgenda); return(Json("", JsonRequestBehavior.AllowGet)); }