Пример #1
0
        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
 public FunctionOpenResult <bool> UpdateByID(LoginPwdInfo info)
 {
     var r = new FunctionOpenResult <bool>(); r.Data = LoginPwdDal.Update(info) > 0; return(r);
 }