public ActionResult AddAttributeToProduct() { ProductVM pvm = new ProductVM() { Products = _prep.GetActives(), Attributes = _arep.GetActives() }; return(View(pvm)); }
public ActionResult AddAttributeToProduct() { ProductRepository _prep = new ProductRepository(); AttributeRepository _arep = new AttributeRepository(); ProductVM pvm = new ProductVM() { Products = _prep.GetActives(), PAttributes = _arep.GetActives(), }; return(View(pvm)); }
void LoadListBox() { lstAttributes.DataSource = attributeRepository.GetActives(); lstAttributes.SelectedIndex = -1; }