删除直接使用(框架中以封装好的)
控制中写就可以啦
public ActionResult Delete(int id) { //权限位置(若需要的话)var individual = _individualInfoService.GetIndividualInfoById(id); if (individual == null) { return RedirectToAction("List"); } _individualInfoService.DeleteIndividualInfo(individual); SuccessNotification(_localizationService.GetResource("Admin.GuiAn.Deleted")); return RedirectToAction("List"); }
posted on 2016-11-07 22:19 阅读( ...) 评论( ...)