Beispiel #1
0
        public Object Details(int id)
        {
            var salData   = salesDal.GetSalesData(id);
            var custList  = customerDal.GetAllCustomers().OrderBy(x => x.Name).ToList();
            var prodList  = productDal.GetAllProducts().OrderBy(x => x.Name).ToList();
            var storeList = storeDal.GetAllStores().OrderBy(x => x.Name).ToList();

            return(new
            {
                SalData = salData,
                CustList = custList,
                ProdList = prodList,
                StoreList = storeList
            });
        }
Beispiel #2
0
 public IEnumerable <Product> Index()
 {
     return(productDal.GetAllProducts());
 }