public ActionResult DeleteConfirmed(int id)
        {
            VoucherOrderLog voucherOrderLog = db.VoucherOrderLogs.Find(id);

            db.VoucherOrderLogs.Remove(voucherOrderLog);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,Order_Id,Customer_Id,Content,Status_Id,PaidDateUtc,CreatedOn,UpdatedOn")] VoucherOrderLog voucherOrderLog)
 {
     if (ModelState.IsValid)
     {
         db.Entry(voucherOrderLog).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(voucherOrderLog));
 }
        public ActionResult Create([Bind(Include = "Id,Order_Id,Customer_Id,Content,Status_Id,PaidDateUtc,CreatedOn,UpdatedOn")] VoucherOrderLog voucherOrderLog)
        {
            if (ModelState.IsValid)
            {
                db.VoucherOrderLogs.Add(voucherOrderLog);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(voucherOrderLog));
        }
        // GET: Admin/VoucherOrderLogs/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            VoucherOrderLog voucherOrderLog = db.VoucherOrderLogs.Find(id);

            if (voucherOrderLog == null)
            {
                return(HttpNotFound());
            }
            return(View(voucherOrderLog));
        }