Ejemplo n.º 1
0
 private void GetAvailableParentsAsSelectListItem()
 {
     AvailableParents = productsData.GetAll().Select(p =>
     {
         return(new SelectListItem()
         {
             Text = $"{p.Name} - id:{p.Id}",
             Value = p.Id.ToString()
         });
     });
 }
 public IEnumerable <Product> GetProducts()
 {
     return(productsData.GetAll());
 }