예제 #1
0
        public void savesetVoucherpercent(setVoucherpercent setVoucherpercent)
        {
            SMSContext sMSContext = new SMSContext();

            sMSContext.setVoucherpercent.Add(setVoucherpercent);
            sMSContext.SaveChanges();
        }
예제 #2
0
        public void updatesetVoucherpercent(setVoucherpercent setVoucherpercent)
        {
            SMSContext sMSContext = new SMSContext();

            sMSContext.Entry(setVoucherpercent).State = System.Data.Entity.EntityState.Modified;
            sMSContext.SaveChanges();
        }
        public ActionResult updateVPercent(setVoucherpercent setVoucherpercent)
        {
            setVoucherpercentservice.updatesetVoucherpercent(setVoucherpercent);

            return(View());
        }