public ActionResult EditData(BonusModel model) { if (ModelState.IsValid) { _iBonusService.Update(model); return(RedirectToAction("Management")); } throw new HimallException("验证失败"); }
public IActionResult Update(Bonus bonus) { var result = _bonusService.Update(bonus); if (result == null) { return(NotFound()); } return(Ok(result)); }
/// <summary> /// 修改红包 /// </summary> public static void Update(BonusInfo model) { _iBonusService.Update(model); }