public ActionResult Scheme_Delete(string ids) { ServiceResult result = new ServiceResult(); try { var idsList = Utilities.GetIdList(ids); foreach (var id in idsList) { var model = SchemeService.Find(id); SchemeService.Delete(model); } result.Message = "删除方案成功!"; } catch (Exception ex) { result.Message = "删除方案失败!"; result.AddServiceError(Utilities.GetInnerMostException(ex)); LogHelper.WriteLog("用户:" + CookieHelper.MemberID + "删除方案失败!", ex); } return(Json(result)); }
public ChitScheme Get(Guid id) { return(_schemeService.Find(id)); }