public ActionResult Delete(int id) { repository.Delete(id); return(Ok(new { status = "200", msg = "OK", obj = new { } })); }
public RedirectToActionResult Delete(int id) { consumoRepository.Delete(id); return(RedirectToAction("Index")); }
public ActionResult Delete(int id) { repository.Delete(id); return(Ok(new { status = "200", msg = "OK", obj = new { } })); }
public RedirectToActionResult Delete(int id) { consumoRepository.Delete(id); return(RedirectToAction("Index")); }