SaveToDb() private method

private SaveToDb ( ) : int
return int
コード例 #1
0
ファイル: ClassController.cs プロジェクト: heinek/ITimeU
 public ActionResult Create(AthleteClassModel model)
 {
     try
     {
         var athleteclass = new AthleteClassModel()
         {
             Name = model.Name
         };
         athleteclass.SaveToDb();
         return RedirectToAction("Index");
     }
     catch
     {
         return View();
     }
 }