public ActionResult Index()
 {
     return(View(_CategoryManger.GettAll().Where(C => C.IsArchived == false).ToList()));
 }
Exemplo n.º 2
0
 private void setCategoryAndSupplierlist()
 {
     ViewBag.CategoryId = new SelectList(_categoryManger.GettAll().Where(c => c.IsArchived == false), "Id", "Name");
     ViewBag.SupplierId = new SelectList(_supplierManger.GettAll().Where(c => c.IsArchived == false), "Id", "Name");
 }