Beispiel #1
0
 public ListModel(IShoppingData shoppingData, ICategoryData categoryList)
 {
     storeData    = shoppingData;
     categoryData = categoryList;
     Categories   = categoryData.CategoryList();
 }
 public IActionResult GetStoreCategories()
 {
     return(Ok(_storeCategoryRepository.CategoryList()));
 }
Beispiel #3
0
 public EditModel(IShoppingData shoppingData, ICategoryData categoryData)
 {
     this.shopingData = shoppingData;
     this.Categories  = categoryData.CategoryList();
 }