public AccountLoginResponse AccountLogin(AccountLoginRequest request) { AccountLoginResponse res = new AccountLoginResponse(); res = dao.AccountLogin(new AccountLoginRequest() { AccountName = request.AccountName, Password = Securities.SHA1(request.Password) }); return(res); }
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); }