SaveToDb() private method

private SaveToDb ( ) : int
return int
Ejemplo n.º 1
0
 public ActionResult Create(AthleteClassModel model)
 {
     try
     {
         var athleteclass = new AthleteClassModel()
         {
             Name = model.Name
         };
         athleteclass.SaveToDb();
         return RedirectToAction("Index");
     }
     catch
     {
         return View();
     }
 }