public ActionResult Edit([Bind(Include = "UserId,FirstName,LastName,ResumeFileName")] UserDetail userDetail) { if (ModelState.IsValid) { db.Entry(userDetail).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(userDetail)); }
public ActionResult Edit([Bind(Include = "LocationId,StoreNumber,City,State,ManagerId")] Location location) { if (ModelState.IsValid) { db.Entry(location).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(location)); }
public ActionResult Edit([Bind(Include = "ApplicationStatusId,StatusName,StatusDescription")] ApplicationStatus applicationStatus) { if (ModelState.IsValid) { db.Entry(applicationStatus).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(applicationStatus)); }
public ActionResult Edit([Bind(Include = "OpenPositionId,LocationId,PositionId,IsOpen")] OpenPosition openPosition) { if (ModelState.IsValid) { db.Entry(openPosition).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.LocationId = new SelectList(db.Locations, "LocationId", "StoreNumber", openPosition.LocationId); ViewBag.PositionId = new SelectList(db.Positions, "PositionId", "Title", openPosition.PositionId); return(View(openPosition)); }
public ActionResult Edit([Bind(Include = "ApplicationId,UserId,OpenPositionId,ApplicationDate,ManagerNotes,ApplicationStatusId,ResumeFileName")] Application application) { if (ModelState.IsValid) { db.Entry(application).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.ApplicationStatusId = new SelectList(db.ApplicationStatuses, "ApplicationStatusId", "StatusName", application.ApplicationStatusId); ViewBag.OpenPositionId = new SelectList(db.OpenPositions, "OpenPositionId", "OpenPositionId", application.OpenPositionId); ViewBag.UserId = new SelectList(db.UserDetails, "UserId", "FirstName", application.UserId); return(View(application)); }
public JsonResult AjaxEdit(Position position) { db.Entry(position).State = EntityState.Modified; db.SaveChanges(); return(Json(position)); }