public IActionResult EditAccount(int id) { return(View(new EditAccountViewModel() { account = accountLogic.GetAccountByID(id), login = accountLogic.GetAccountByID(id).Login, EditButton = true })); }
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)); }
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)); }