private MoneyAccountView GetMoneyAccountView(string id) { GetRequest request = new GetRequest(); request.ID = Guid.Parse(id); GetMoneyAccountResponse response = this._moneyAccountService.GetMoneyAccount(request); return(response.MoneyAccountView); }
public GetMoneyAccountResponse GetMoneyAccount(GetRequest request) { GetMoneyAccountResponse response = new GetMoneyAccountResponse(); try { MoneyAccount moneyAccount = new MoneyAccount(); MoneyAccountView moneyAccountView = moneyAccount.ConvertToMoneyAccountView(); moneyAccount = _moneyAccountRepository.FindBy(request.ID); if (moneyAccount != null) { moneyAccountView = moneyAccount.ConvertToMoneyAccountView(); } response.MoneyAccountView = moneyAccountView; } catch (Exception ex) { } return(response); }