public ActionResult Index() { var vm = new IndexViewModel { }; LayoutHelper.FillLayoutModel(vm); vm.PopularBrands = new List <ImageModel> { new ImageModel { Source = "img/brands/02.png", Alt = "Samsung" }, new ImageModel { Source = "img/brands/03.png", Alt = "Sony" } }; vm.SliderItems = new List <SliderItemModel> { new SliderItemModel { CustomText = "Buy Now!", Title = "Google Home - Smart Speaker", CustomTextPrice = "359$", Image = "img/hero-slider/logo02.png", Link = new LinkViewModel { Link = "#", Text = "Go" } }, new SliderItemModel { CustomText = "View offers", Title = "Modern Powerful Laptop", CustomTextPrice = "1$", Image = "img/hero-slider/logo03.png", Link = new LinkViewModel { Link = "#", Text = "Go" } } }; return(View(vm)); }
public ActionResult Index(string pageName) { var vm = new PageViewModel(); LayoutHelper.FillLayoutModel(vm); return(this.View(vm)); }
public ViewResult CompareList() { var vm = new CompareListViewModel(); LayoutHelper.FillLayoutModel(vm); return(this.View(vm)); }
public ViewResult Wishlist() { var vm = new WishlistViewModel(); LayoutHelper.FillLayoutModel(vm); return(this.View(vm)); }
public ViewResult Browse() { var vm = new TicketsViewModel(); LayoutHelper.FillLayoutModel(vm); return(this.View(vm)); }
public ViewResult Item(int id) { var vm = new TicketViewModel(); LayoutHelper.FillLayoutModel(vm); return(this.View(vm)); }
public ViewResult Index() { var vm = new OrdersViewModel(); LayoutHelper.FillLayoutModel(vm); return(this.View(vm)); }
public new ViewResult Profile() { var vm = new ProfileViewModel(); LayoutHelper.FillLayoutModel(vm); return(this.View(vm)); }
public ViewResult Registration() { var vm = new RegistrationViewModel(); LayoutHelper.FillLayoutModel(vm); return(this.View(vm)); }
public ViewResult PasswordReset() { var vm = new PasswordResetViewModel(); LayoutHelper.FillLayoutModel(vm); return(this.View(vm)); }
public ActionResult Category(int?categoryId) { var vm = new BrowseByCategoryViewModel(); LayoutHelper.FillLayoutModel(vm); vm.SiteMap = new List <LinkViewModel> { new LinkViewModel { Link = "#", Text = "First" }, new LinkViewModel { Link = "#", Text = "Second" }, new LinkViewModel { Link = "#", Text = "Last" } }; vm.Category = new CategoryModel { Id = 1, Image = "", Link = "", Name = "Mobile Phones" }; vm.SubTitle = vm.Category.Name; vm.SubCategories = new List <CategoryModel> { new CategoryModel { Id = 1, Image = "", Link = "", Name = "" }, new CategoryModel { Id = 1, Image = "", Link = "", Name = "" }, new CategoryModel { Id = 1, Image = "", Link = "", Name = "" }, new CategoryModel { Id = 1, Image = "", Link = "", Name = "" } }; vm.PriceFilter = new PriceFilter { From = 1, To = 1000, CurrencySign = "$" }; vm.BrandFilter = new BrandFilter { Options = new List <ProductSpecificationFilterOption> { new ProductSpecificationFilterOption { Count = 10, Id = 1, Title = "Apple" }, new ProductSpecificationFilterOption { Count = 34, Id = 2, Title = "Samsung" }, new ProductSpecificationFilterOption { Count = 44, Id = 3, Title = "Xiaomi" }, new ProductSpecificationFilterOption { Count = 654, Id = 4, Title = "Philips" } } }; vm.Filters = new List <ProductSpecificationFilter> { new ProductSpecificationFilter { Id = 1, Title = "Weight", Options = new List <ProductSpecificationFilterOption> { new ProductSpecificationFilterOption { Count = 0, Id = 1, Title = "0-50g" }, new ProductSpecificationFilterOption { Count = 22, Id = 2, Title = "50-150g" }, new ProductSpecificationFilterOption { Count = 1, Id = 3, Title = "150-550g" }, new ProductSpecificationFilterOption { Count = 234, Id = 4, Title = "550g +" } } }, new ProductSpecificationFilter { Id = 3, Title = "Display size", Options = new List <ProductSpecificationFilterOption> { new ProductSpecificationFilterOption { Count = 0, Id = 1, Title = "11'" }, new ProductSpecificationFilterOption { Count = 2, Id = 2, Title = "12'" }, new ProductSpecificationFilterOption { Count = 1, Id = 3, Title = "13'" }, new ProductSpecificationFilterOption { Count = 24, Id = 4, Title = "14'" } } }, new ProductSpecificationFilter { Id = 4, Title = "Color", Options = new List <ProductSpecificationFilterOption> { new ProductSpecificationFilterOption { Count = 0, Id = 1, Title = "Red" }, new ProductSpecificationFilterOption { Count = 2, Id = 2, Title = "Blue" }, new ProductSpecificationFilterOption { Count = 1, Id = 3, Title = "Black" }, new ProductSpecificationFilterOption { Count = 24, Id = 4, Title = "White" }, new ProductSpecificationFilterOption { Count = 24, Id = 4, Title = "Orange" }, new ProductSpecificationFilterOption { Count = 24, Id = 4, Title = "Yellow" }, new ProductSpecificationFilterOption { Count = 24, Id = 4, Title = "Gray" }, new ProductSpecificationFilterOption { Count = 24, Id = 4, Title = "Green" }, new ProductSpecificationFilterOption { Count = 24, Id = 4, Title = "Violet" }, new ProductSpecificationFilterOption { Count = 24, Id = 4, Title = "Mint" }, new ProductSpecificationFilterOption { Count = 24, Id = 4, Title = "Brown" }, new ProductSpecificationFilterOption { Count = 24, Id = 4, Title = "Lavender" }, new ProductSpecificationFilterOption { Count = 24, Id = 4, Title = "Sky" }, } } }; return(View(vm)); }
public ViewResult Index() { var vm = new CartViewModel(); LayoutHelper.FillLayoutModel(vm); vm.SiteMap = new List <LinkViewModel> { new LinkViewModel { Link = "#", Text = "First" }, new LinkViewModel { Link = "#", Text = "Second" }, new LinkViewModel { Link = "#", Text = "Last" } }; vm.SubTitle = "Carttttt"; vm.RelatedProducts = new List <ProductItem> { new ProductItem { ProductTitle = "Телевізор Hisense 65U8QF", CategoryId = 1, CategoryName = "TV", IsOutOfStock = true, IsSale = true, OldPrice = 39999, OldPriceStr = "39999$", Price = 11, PriceStr = "11$", ProductId = 1, ProductImgUrl = "https://i8.rozetka.ua/goods/18996404/hisense_65u8qf_images_18996404071.jpg", ProductUrl = "#", CategoryUrl = "#", }, new ProductItem { ProductTitle = "Мобільний телефон Samsung Galaxy S20 FE", CategoryId = 1, CategoryName = "Mobile", IsOutOfStock = true, IsSale = true, OldPrice = 39999, OldPriceStr = "39999$", Price = 11, PriceStr = "11$", ProductId = 1, ProductImgUrl = "https://i2.rozetka.ua/goods/19989841/samsung_sm_g780fzwdsek_images_19989841236.jpg", ProductUrl = "#", CategoryUrl = "#", }, new ProductItem { ProductTitle = "Телевізор Hisense 65U8QF", CategoryId = 1, CategoryName = "TV", IsOutOfStock = true, IsSale = true, OldPrice = 39999, OldPriceStr = "39999$", Price = 11, PriceStr = "11$", ProductId = 1, ProductImgUrl = "https://i8.rozetka.ua/goods/18996404/hisense_65u8qf_images_18996404071.jpg", ProductUrl = "#", CategoryUrl = "#" } }; return(this.View(vm)); }
public ViewResult Index(int id) { var vm = new ProductViewModel(); LayoutHelper.FillLayoutModel(vm); vm.SiteMap = new List <LinkViewModel> { new LinkViewModel { Link = "#", Text = "First" }, new LinkViewModel { Link = "#", Text = "Second" }, new LinkViewModel { Link = "#", Text = "Last" } }; vm.SubTitle = "Apple iPhone 12 mini 256GB White"; vm.Images = new List <ImageModel> { new ImageModel { Source = "https://i2.rozetka.ua/goods/22963788/299109013_images_22963788498.jpg", Thumb = "https://i2.rozetka.ua/goods/22963788/299109013_images_22963788498.jpg", Alt = "PR", Link = new LinkViewModel { Link = "#", Text = "First" } }, new ImageModel { Source = "https://content1.rozetka.com.ua/goods/images/big/180340463.jpg", Thumb = "https://content1.rozetka.com.ua/goods/images/big/180340463.jpg", Alt = "PR", Link = new LinkViewModel { Link = "#", Text = "First" } }, new ImageModel { Source = "https://content.rozetka.com.ua/goods/images/big/180340474.jpg", Thumb = "https://content.rozetka.com.ua/goods/images/big/180340474.jpg", Alt = "PR", Link = new LinkViewModel { Link = "#", Text = "First" } } }; vm.Price = 99; vm.OldPrice = 88; vm.Sku = "3432523"; vm.ProductTitle = "Apple iPhone 12 mini 256GB White"; vm.Description = "Экран (6.7'', OLED(Super Retina XDR), 2778x1284) / Apple A14 Bionic / тройная основная камера: 12 Мп + 12 Мп + 12 Мп, фронтальная камера: 12 Мп / 128 ГБ встроенной памяти / 3G / LTE / 5G / GPS / Nano - SIM / iOS 14"; vm.Specifications = new List <ProductSpecificationItem> { new ProductSpecificationItem { Name = "Объем", Value = "1 ТБ" }, new ProductSpecificationItem { Name = "Страна-производитель", Value = "Китай (Тайвань)" }, new ProductSpecificationItem { Name = "Скорость чтения", Value = "До 1800 МБ/с" }, new ProductSpecificationItem { Name = "Скорость записи", Value = "До 1800 МБ/с" }, new ProductSpecificationItem { Name = "Время наработки на отказ", Value = "1 800 000 часов" }, new ProductSpecificationItem { Name = "Устойчивость к ударным нагрузкам", Value = "1500G / 0.5 мс" }, new ProductSpecificationItem { Name = "Форм-фактор", Value = "M2" } }; vm.RelatedProducts = new List <ProductItem> { new ProductItem { ProductTitle = "Телевізор Hisense 65U8QF", CategoryId = 1, CategoryName = "TV", IsOutOfStock = true, IsSale = true, OldPrice = 39999, OldPriceStr = "39999$", Price = 11, PriceStr = "11$", ProductId = 1, ProductImgUrl = "https://i8.rozetka.ua/goods/18996404/hisense_65u8qf_images_18996404071.jpg", ProductUrl = "#", CategoryUrl = "#", }, new ProductItem { ProductTitle = "Мобільний телефон Samsung Galaxy S20 FE", CategoryId = 1, CategoryName = "Mobile", IsOutOfStock = true, IsSale = true, OldPrice = 39999, OldPriceStr = "39999$", Price = 11, PriceStr = "11$", ProductId = 1, ProductImgUrl = "https://i2.rozetka.ua/goods/19989841/samsung_sm_g780fzwdsek_images_19989841236.jpg", ProductUrl = "#", CategoryUrl = "#", }, new ProductItem { ProductTitle = "Телевізор Hisense 65U8QF", CategoryId = 1, CategoryName = "TV", IsOutOfStock = true, IsSale = true, OldPrice = 39999, OldPriceStr = "39999$", Price = 11, PriceStr = "11$", ProductId = 1, ProductImgUrl = "https://i8.rozetka.ua/goods/18996404/hisense_65u8qf_images_18996404071.jpg", ProductUrl = "#", CategoryUrl = "#" } }; return(this.View(vm)); }