private void populateVendorList()
 {
     if (btnShowDeactivatedVendors.Background == Brushes.LightGreen)
     {
         dgVendorList.ItemsSource = _vendorManager.GetVendorsByActive(false);
     }
     else
     {
         dgVendorList.ItemsSource = _vendorManager.GetVendorsByActive(true);
     }
 }
Example #2
0
        // GET: Vendor
        public ActionResult Index()
        {
            ViewBag.Title = "Vendor List";

            List <Vendor> vendors;

            try
            {
                vendors = _vendorManager.GetVendorsByActive();
            }
            catch (Exception ex)
            {
                return(View());
            }

            return(View(vendors));
        }