public void getLists() { var getCategory = servis.GetCategories(); dtGridCategory.ItemsSource = getCategory; var getSellist = servis.GetSells(int.Parse(lblCompanyID.Content.ToString())); dtGridSells.ItemsSource = getSellist; var getFeedBack = servis.GetViewFeedBak(int.Parse(lblCompanyID.Content.ToString())); dtGridTP.ItemsSource = getFeedBack; var getCategoryCombo = servis.ReturnCategory(); cbCategory.ItemsSource = getCategoryCombo; var getProductCategory = servis.returnProductCategory(); cbProductCategory.ItemsSource = getProductCategory; }
// GET: Product/Create public ActionResult Create() { ViewBag.categories = services.GetCategories(); return(View()); }
public ActionResult Index() { ViewBag.categories = services.GetCategories(); ViewBag.sup = services.getAllSupplier(); return(View(services.GetProducts())); }