public IUserBase LoginForSession(string uid, string pwd) { var encryptPwd = CommonUtilities.Encrypt(pwd); var user = new ERUserEntity { UserID = uid, Password = encryptPwd }; DataAccessManager.ExecuteCommand("GetUserByIDAndPassword", cmd => { using (var reader = cmd.ExecuteDataReader(user)) { reader.Read(); user.Build(reader); } }); return(user); }
public string OperationUserPoints(ERUserEntity entity, string operationType) { return(OperationInvoke("OperationUserPoints", entity, operationType) != 0 ? entity.UserID : string.Empty); }