Ejemplo n.º 1
0
        public ActionResult Create(int SchoolId = 0, int SchoolFormId = 0)
        {
            SchoolForm sf = new SchoolForm();

            sf.SchoolId = SchoolId;
            return(View("Edit", sf));
        }
Ejemplo n.º 2
0
 public ActionResult Edit(SchoolForm schoolForm)
 {
     if (ModelState.IsValid)
     {
         db.SchoolForm.Add(schoolForm);
         db.SaveChanges();
     }
     return(RedirectToAction("Info", "School", new { id = schoolForm.SchoolId }));
 }