public ActionResult DeleteConfirmed(int id) { paymenttype paymenttype = db.paymenttypes.Find(id); db.paymenttypes.Remove(paymenttype); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit(paymenttype paymenttype) { if (ModelState.IsValid) { db.Entry(paymenttype).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(paymenttype)); }
public string code; // code to unlock public coin() { id = 0; carplate = "nv56 qyc"; bill = paymenttype.fulltime; code = ""; payed = false; entertime = DateTime.Now; costperhour = 0; fixedprice = 0; }
public ActionResult Create(paymenttype paymenttype) { if (ModelState.IsValid) { db.paymenttypes.Add(paymenttype); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(paymenttype)); }
public ActionResult Delete(int id) { paymenttype paymenttype = db.paymenttypes.Find(id); return(View(paymenttype)); }
public ViewResult Details(int id) { paymenttype paymenttype = db.paymenttypes.Find(id); return(View(paymenttype)); }