//
        // GET: /DiscountManageAdmin/Create
        public ActionResult Create()
        {
            DiscountManage discountmanage = new DiscountManage();
            discountmanage.id = 0;

            return View(discountmanage);
        }
        public ActionResult Create(DiscountManage discountmanage)
        {
            if (ModelState.IsValid)
            {
                db.DiscountManages.Add(discountmanage);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(discountmanage);
        }
 public ActionResult Edit(DiscountManage discountmanage)
 {
     if (ModelState.IsValid)
     {
         db.Entry(discountmanage).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(discountmanage);
 }