예제 #1
0
 public IActionResult Index()
 {
     return(View(new ManageViewModel()
     {
         newShoeViewModel = new NewShoeViewModel()
         {
             Brands = shoeLogic.GetBrands(), Groups = shoeLogic.GetGroups()
         },
         shoeListViewModel = new ShoeListViewModel()
         {
             Shoes = shoeLogic.GetShoes()
         },
         accountListViewModel = new AccountListViewModel()
         {
             Accounts = accountLogic.GetAllAccounts()
         },
         registerViewModel = new RegisterViewModel()
         {
             account = new Account(), login = new Login()
         },
         orderListViewModel = new orderListViewModel()
         {
             orders = shopLogic.GetAllOrder()
         }
     }));
 }