Exemplo n.º 1
0
 public IActionResult OnGet(int?categoryId)
 {
     if (categoryId.HasValue && categoryId > 0)
     {
         Stores    = storeData.StoreListByCategory((int)categoryId);
         ListTitle = "Store Directory - " + categoryData.CategoryNameById((int)categoryId);
     }
     else
     {
         Stores    = storeData.StoreList();
         ListTitle = "Store Directory";
     }
     return(Page());
 }
 public IActionResult GetStoreCategoryById(int id)
 {
     return(Ok(_storeCategoryRepository.CategoryNameById(id)));
 }