public ActionResult Create(Room_status_info room_status_info) { if (ModelState.IsValid) { db.rstatus.Add(room_status_info); db.SaveChanges(); return RedirectToAction("Index"); } return View(room_status_info); }
public ActionResult Edit(Room_status_info room_status_info) { if (ModelState.IsValid) { db.Entry(room_status_info).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(room_status_info); }