Example #1
0
 public ActionResult Insert(Singer model)
 {
     if (ModelState.IsValid)
     {
         repository.Insert(model);
         return(RedirectToAction("Index", "Singer"));
     }
     return(View());
 }