public ActionResult EditAddress(Guid id) { ViewBag.User = _user; var model = QueryStackWorkerService.GetAddressForBankAccount(id); return(View(model)); }
private bool IsContactDirty(ContactViewModel vm) { var model = QueryStackWorkerService.GetContactForBankAccount(vm.AggregateId); return(!model.Email.Equals(vm.Email.Trim()) || !model.PhoneNumber.Equals(vm.PhoneNumber.Trim())); }
public ActionResult EditCustomer(Guid id) { ViewBag.User = _user; var model = QueryStackWorkerService.GetPersonForBankAccount(id); return(View(model)); }
public ActionResult Index() { var model = QueryStackWorkerService.GetAllBankAccounts(); ViewBag.User = _user; return(View(model)); }
public ActionResult Details(Guid id) { var model = QueryStackWorkerService.GetDetails(id); var accounts = QueryStackWorkerService.GetAccountsByCustomerId(model.AggregateId).ToList(); ViewBag.User = _user; ViewBag.Accounts = accounts; return(View(model)); }
private bool IsPersonDirty(PersonViewModel vm) { var model = QueryStackWorkerService.GetPersonForBankAccount(vm.AggregateId); return(!model.FirstName.Equals(vm.FirstName.Trim()) || !model.LastName.Equals(vm.LastName.Trim()) || !model.IdCard.Equals(vm.IdCard.Trim()) || !model.IdNumber.Equals(vm.IdNumber.Trim())); }
private bool ÎsAddressDirty(AddressViewModel vm) { var model = QueryStackWorkerService.GetAddressForBankAccount(vm.AggregateId); return(!model.City.Equals(vm.City.Trim()) || !model.Hausnumber.Equals(vm.Hausnumber.Trim()) || !model.State.Equals(vm.State.Trim()) || !model.Street.Equals(vm.Street.Trim()) || !model.Zip.Equals(vm.Zip.Trim())); }
public ActionResult Index(string Account) { if (string.IsNullOrWhiteSpace(Account) || Account.Equals("Please choose a customer")) { var model = QueryStackWorkerService.GetAllBankAccounts(); ViewBag.User = _user; return(View(model)); } return(RedirectToAction("Details", new { id = new Guid(Account) })); }
public ActionResult History(Guid id, string name, Guid customerId, string currency) { ViewBag.AccountName = name; var model = QueryStackWorkerService.GetAccountHistory(id); ViewBag.CurrentBalance = model.Sum(b => b.Amount); ViewBag.CustomerId = customerId; ViewBag.AccountId = id; ViewBag.Currency = currency; return(View(model)); }
public ActionResult TransferMoney(Guid id) { var account = QueryStackWorkerService.GetAccountById(id); return(View(account)); }