Exemple #1
0
        public AccountLoginResponse AccountLogin(AccountLoginRequest request)
        {
            AccountLoginResponse res = new AccountLoginResponse();

            res = dao.AccountLogin(new AccountLoginRequest()
            {
                AccountName = request.AccountName,
                Password    = Securities.SHA1(request.Password)
            });
            return(res);
        }
Exemple #2
0
        public UpdateAccountResponse UpdateAccount(UpdateAccountRequest request)
        {
            UpdateAccountResponse res = new UpdateAccountResponse();

            res = dao.UpdateAccount(new UpdateAccountRequest()
            {
                AccountName = request.AccountName,
                Password    = Securities.SHA1(request.Password),
                AccountType = request.AccountType,
                Address     = request.Address,
                DOB         = request.DOB,
                IDNumber    = request.IDNumber,
                PhoneNumber = request.PhoneNumber,
                Status      = request.Status
            });
            return(res);
        }