Exemplo n.º 1
0
 public ActionResult EditData(BonusModel model)
 {
     if (ModelState.IsValid)
     {
         _iBonusService.Update(model);
         return(RedirectToAction("Management"));
     }
     throw new HimallException("验证失败");
 }
Exemplo n.º 2
0
        public IActionResult Update(Bonus bonus)
        {
            var result = _bonusService.Update(bonus);

            if (result == null)
            {
                return(NotFound());
            }

            return(Ok(result));
        }
Exemplo n.º 3
0
 /// <summary>
 ///  修改红包
 /// </summary>
 public static void Update(BonusInfo model)
 {
     _iBonusService.Update(model);
 }