コード例 #1
0
ファイル: SchemeController.cs プロジェクト: navy235/7980Site
        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));
        }
コード例 #2
0
 public ChitScheme Get(Guid id)
 {
     return(_schemeService.Find(id));
 }