public ViewResult MainViewResult() { var viewResult = new ViewResult(); viewResult.ViewName = "Index"; var userProducts = new ProductModel(Domain.User.Products); userProducts.Refresh(); var userAccount = new AccountModel(Domain.User.Account); userAccount.Refresh(); var vmProducts = new ProductModel(Domain.VM.Products); vmProducts.Refresh(); var vmBankAccount = new AccountModel(Domain.VM.BankAccount); vmBankAccount.Refresh(); viewResult.ViewBag.UserProducts = userProducts; viewResult.ViewBag.UserAccount = userAccount; viewResult.ViewBag.VMProducts = vmProducts; viewResult.ViewBag.VMBankAccount = vmBankAccount; viewResult.ViewBag.VMUserAccount = Domain.VM.UserAccount; return viewResult; }