Inheritance: IModel
Example #1
0
 public ActionResult Delete(int id, Aluno model)
 {
     try
     {
         return RedirectToAction("Index");
     }
     catch
     {
         return View();
     }
 }
Example #2
0
 public ActionResult Create(Aluno model)
 {
     repository.Create(model);
     return RedirectToAction("Index");
 }
Example #3
0
 public ActionResult Create()
 {
     var aluno = new Aluno();
     return View(aluno);
 }