public ActionResult Delete(int id) { bool rpta = distritoService.Delete(id); if (rpta) { return(RedirectToAction("Index")); } return(View()); }
public IActionResult Delete(Guid DistritoId) { Service.Delete(DistritoId); return(Ok(true)); }
public ActionResult Delete(int id) { return(Ok( distritoService.Delete(id) )); }