예제 #1
0
 public ActionResult Edit(Form f)
 {
     if (ModelState.IsValid)
     {
         // Save the changes to the partnership night
         formRepo.UpdateForm(f);
         // TODO: Fix this. Partnership Night was removed from Form class
         //TempData["message"] = string.Format("Form for Partnership Night {0} has been saved", f.pNight.Date);
         return RedirectToAction("Index");
     }
     else
     {
         // there is something wrong with the data values
         return View(f);
     }
 }
예제 #2
0
        public void AddForm(Form sec3)
        {
            var db = new CapstoneDbContext();

            db.Forms.Add(sec3);
        }