Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public ChitScheme Get(Guid id)
 {
     return(_schemeService.Find(id));
 }