public ActionResult AddVip(VipService Add) { try { using (TouchContext touch = new TouchContext()) { touch.VipServices.Add(Add); touch.SaveChanges(); return(RedirectToAction("vip")); } } catch (Exception ex) { throw; } }
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; } }
public CouponController() { _vipService = new VipService(); _couponService = new CouponService(); _pointService = new PointService(); }
public VipController() { _vipService = new VipService(); }
public PointController() { _vipService = new VipService(); _pointService = new PointService(); }
public WeChatController() { _loginService = new LoginService(); _vipService = new VipService(); }