Esempio n. 1
0
 public ActionResult Save(CustomPeopleModel m)
 {
     if(ModelState.IsValid)
     {
         PeopleModel.SaveNew(m);
         return RedirectToAction("Index");
     }
     else
     {
         return View("_PeopleEdit", m);
     }
 }
Esempio n. 2
0
 public static bool SaveNew(CustomPeopleModel m)
 {
     return false;
 }
Esempio n. 3
0
 //private Entities.StartGymDB db = new Entities.StartGymDB();
 public PeopleModel()
 {
     Persona = new CustomPeopleModel();
 }
Esempio n. 4
0
 public static bool SaveNew(CustomPeopleModel m)
 {
     return(false);
 }
Esempio n. 5
0
        //private Entities.StartGymDB db = new Entities.StartGymDB();

        public PeopleModel()
        {
            Persona = new CustomPeopleModel();
        }