예제 #1
0
 public IActionResult EditAccount(int id)
 {
     return(View(new EditAccountViewModel()
     {
         account = accountLogic.GetAccountByID(id),
         login = accountLogic.GetAccountByID(id).Login,
         EditButton = true
     }));
 }
예제 #2
0
        public IActionResult Checkout(int accountID)
        {
            CheckOutViewModel model = new CheckOutViewModel()
            {
                accountModel = new EditAccountViewModel()
                {
                    account    = accountLogic.GetAccountByID(accountID),
                    login      = accountLogic.GetAccountByID(accountID).Login,
                    EditButton = true
                },
                items = shopLogic.GetBagItems(accountID)
            };

            return(View(model));
        }
예제 #3
0
        public IActionResult Account(int AccountID)
        {
            AccountViewModel model = new AccountViewModel()
            {
                editAccountViewModel = new EditAccountViewModel()
                {
                    account    = AccountLogic.GetAccountByID(AccountID),
                    login      = AccountLogic.GetAccountByID(AccountID).Login,
                    EditButton = true
                },
                orderListViewModel = new orderListViewModel()
                {
                    orders = shopLogic.GetOrderFromUser(AccountID)
                }
            };

            return(View(model));
        }