public ActionResult Create(InterviewVenue interviewvenue) { if (ModelState.IsValid) { db.InterviewVenues.Add(interviewvenue); db.SaveChanges(); return RedirectToAction("Index"); } return View(interviewvenue); }
// // GET: /InterviewVenue/Create public ActionResult Create() { var model = new InterviewVenue(); model.status = true; return View(model); }
public ActionResult Edit(InterviewVenue interviewvenue) { if (ModelState.IsValid) { db.Entry(interviewvenue).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(interviewvenue); }