/// <summary>
        /// 新增
        /// </summary>
        private void Add(HttpContext context)
        {
            string result;
            try
            {
                var model = new UserInfo();
                SetObjectPropertyValueFromHttpRequest(model, context);
                BllObjectFactory.UserInfoManager.Save(model);

                result = this.OutPutDialogString(ResponseStatus.Success, "新增成功", "UserInfoList", string.Empty,
                                                 CallbackType.closeCurrent, string.Empty);
            }
            catch (Exception)
            {
                result = this.OutPutDialogString(ResponseStatus.Fail, "新增失败", "UserInfoList", string.Empty,
                                                 CallbackType.closeCurrent, string.Empty);
            }

            context.Response.Write(result);
        }
コード例 #2
0
ファイル: UserInfoService.cs プロジェクト: LIYINHAI/shauke
 public static int Insert(UserInfo userinfo)
 {
     return(iuserinfo.Insert(userinfo));
 }