Ejemplo n.º 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            paymenttype paymenttype = db.paymenttypes.Find(id);

            db.paymenttypes.Remove(paymenttype);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
 public ActionResult Edit(paymenttype paymenttype)
 {
     if (ModelState.IsValid)
     {
         db.Entry(paymenttype).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(paymenttype));
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
        public ActionResult Create(paymenttype paymenttype)
        {
            if (ModelState.IsValid)
            {
                db.paymenttypes.Add(paymenttype);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(paymenttype));
        }
Ejemplo n.º 5
0
        public ActionResult Delete(int id)
        {
            paymenttype paymenttype = db.paymenttypes.Find(id);

            return(View(paymenttype));
        }
Ejemplo n.º 6
0
        public ViewResult Details(int id)
        {
            paymenttype paymenttype = db.paymenttypes.Find(id);

            return(View(paymenttype));
        }