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 }); }
public IEnumerable <Product> Index() { return(productDal.GetAllProducts()); }