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); } }
public void AddForm(Form sec3) { var db = new CapstoneDbContext(); db.Forms.Add(sec3); }