示例#1
0
        public ActionResult EditAddress(Guid id)
        {
            ViewBag.User = _user;
            var model = QueryStackWorkerService.GetAddressForBankAccount(id);

            return(View(model));
        }
示例#2
0
        private bool IsContactDirty(ContactViewModel vm)
        {
            var model = QueryStackWorkerService.GetContactForBankAccount(vm.AggregateId);

            return(!model.Email.Equals(vm.Email.Trim()) ||
                   !model.PhoneNumber.Equals(vm.PhoneNumber.Trim()));
        }
示例#3
0
        public ActionResult EditCustomer(Guid id)
        {
            ViewBag.User = _user;
            var model = QueryStackWorkerService.GetPersonForBankAccount(id);

            return(View(model));
        }
示例#4
0
        public ActionResult Index()
        {
            var model = QueryStackWorkerService.GetAllBankAccounts();

            ViewBag.User = _user;
            return(View(model));
        }
示例#5
0
        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));
        }
示例#6
0
        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()));
        }
示例#7
0
        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()));
        }
示例#8
0
 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) }));
 }
示例#9
0
        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));
        }
示例#10
0
        public ActionResult TransferMoney(Guid id)
        {
            var account = QueryStackWorkerService.GetAccountById(id);

            return(View(account));
        }