public ActionResult Delete(int id, Aluno model) { try { return RedirectToAction("Index"); } catch { return View(); } }
public ActionResult Create(Aluno model) { repository.Create(model); return RedirectToAction("Index"); }
public ActionResult Create() { var aluno = new Aluno(); return View(aluno); }