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