Esempio n. 1
0
        public IActionResult Index()
        {
            HomePageModel model = new HomePageModel();

            model.lstsale     = oItemservice.GetSale();
            model.lstNewItems = oItemservice.GetAll().Take(5);
            //model.lstBestSeller = model.lstAlltems.Take(3);
            model.lstSliderImages = oSlidersservice.GetAll();
            return(View(model));
        }
Esempio n. 2
0
 public IActionResult List()
 {
     return(View(oItemservice.GetAll()));
 }
 public IEnumerable <Items> Get()
 {
     return(oItemservice.GetAll());
 }