Пример #1
0
 public ActionResult AddVip(VipService Add)
 {
     try
     {
         using (TouchContext touch = new TouchContext())
         {
             touch.VipServices.Add(Add);
             touch.SaveChanges();
             return(RedirectToAction("vip"));
         }
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Пример #2
0
 public ActionResult Editvip(VipService input)
 {
     try
     {
         using (TouchContext touch = new TouchContext())
         {
             touch.Entry(input).State = EntityState.Modified;
             touch.SaveChanges();
             return(RedirectToAction("vip"));
         }
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Пример #3
0
 public CouponController()
 {
     _vipService    = new VipService();
     _couponService = new CouponService();
     _pointService  = new PointService();
 }
Пример #4
0
 public VipController()
 {
     _vipService = new VipService();
 }
Пример #5
0
 public PointController()
 {
     _vipService   = new VipService();
     _pointService = new PointService();
 }
Пример #6
0
 public WeChatController()
 {
     _loginService = new LoginService();
     _vipService   = new VipService();
 }