コード例 #1
0
ファイル: LoginPwdServer.cs プロジェクト: xqj/Security
        public FunctionResult <LoginPwdInfo> Create(LoginPwdInfo info)
        {
            var r = new FunctionResult <LoginPwdInfo>(); int id = LoginPwdDal.Add(info); if (id > 0)

            {
                r.Data = info; r.Data.LoginPwdId = id;
            }

            return(r);
        }
コード例 #2
0
ファイル: LoginPwdServer.cs プロジェクト: xqj/Security
 public FunctionOpenResult <bool> UpdateByID(LoginPwdInfo info)
 {
     var r = new FunctionOpenResult <bool>(); r.Data = LoginPwdDal.Update(info) > 0; return(r);
 }