public ActionResult DeleteConfirmed(decimal id) { TRN_USER_LOCATION trn_user_location = db.TRN_USER_LOCATION.Single(t => t.LOC_NO == id); db.TRN_USER_LOCATION.DeleteObject(trn_user_location); db.SaveChanges(); return(RedirectToAction("Index")); }
// // GET: /UserLocation/Delete/5 public ActionResult Delete(decimal id = 0) { TRN_USER_LOCATION trn_user_location = db.TRN_USER_LOCATION.Single(t => t.LOC_NO == id); if (trn_user_location == null) { return(HttpNotFound()); } return(View(trn_user_location)); }
public ActionResult Edit(TRN_USER_LOCATION trn_user_location) { if (ModelState.IsValid) { db.TRN_USER_LOCATION.Attach(trn_user_location); db.ObjectStateManager.ChangeObjectState(trn_user_location, EntityState.Modified); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(trn_user_location)); }
public ActionResult Create(TRN_USER_LOCATION trn_user_location) { if (ModelState.IsValid) { db.TRN_USER_LOCATION.AddObject(trn_user_location); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(trn_user_location)); }