public ActionResult Edit(Holiday holiday) { if (ModelState.IsValid) { db.Entry(holiday).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(holiday)); }
public ActionResult Edit(Message message) { if (ModelState.IsValid) { db.Entry(message).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(message)); }
public ActionResult Edit(Department department) { if (ModelState.IsValid) { db.Entry(department).State = EntityState.Modified; db.SaveChanges(); return(PartialView("GridData", new Department[] { department })); } return(PartialView(department)); }
public ActionResult Edit(Company company) { if (ModelState.IsValid) { db.Entry(company).State = EntityState.Modified; db.SaveChanges(); return(PartialView("GridData", new Company[] { company })); } return(PartialView(company)); }
public ActionResult Edit(Employee employee) { if (ModelState.IsValid) { db.Entry(employee).State = EntityState.Modified; db.SaveChanges(); return(PartialView("GridData", new Employee[] { employee })); } return(PartialView(employee)); }
public ActionResult Edit(Message message) { if (ModelState.IsValid) { db.Entry(message).State = EntityState.Modified; db.SaveChanges(); return(PartialView("GridData", new Message[] { message })); } return(PartialView(message)); }
public ActionResult Edit(Punch punch) { if (ModelState.IsValid) { db.Entry(punch).State = EntityState.Modified; db.SaveChanges(); return(PartialView("GridData", new Punch[] { punch })); } ViewBag.EmployeeID = new SelectList(db.Employees, "EmployeeID", "FirstName", punch.EmployeeID); return(PartialView(punch)); }