// GET: CharClass/Delete/5 public ActionResult Delete(int id) { var service = new CharClassServices(); var model = service.DeleteClass(id); return(View(model)); }
public ActionResult DeleteConfirmed(int id) { var service = new CharClassServices(); if (service.DeleteClass(id)) { return(RedirectToAction("Index")); } return(RedirectToAction("Delete", new { id })); }