public ActionResult DeleteConfirmed(long id) { POS_USER_SESSION pOS_USER_SESSION = db.POS_USER_SESSION.Find(id); db.POS_USER_SESSION.Remove(pOS_USER_SESSION); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "USER_SESSION_ID,USER_ID,COUNTER_ID,LOGIN_DATETIME,ISSUCCESS_LOGIN_FLAG,IP_ADDRESS,LOGOUT_DATETIME,ISSUCCESS_LOGOUT_FLAG")] POS_USER_SESSION pOS_USER_SESSION) { if (ModelState.IsValid) { db.Entry(pOS_USER_SESSION).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(pOS_USER_SESSION)); }
// GET: CashierStatus/Delete/5 public ActionResult Delete(long?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } POS_USER_SESSION pOS_USER_SESSION = db.POS_USER_SESSION.Find(id); if (pOS_USER_SESSION == null) { return(HttpNotFound()); } return(View(pOS_USER_SESSION)); }