public ActionResult SubCategory(int id) { SubCategory subCategory = _subCategoryService.Get(id); Category category = subCategory.Category; ViewBag.subCategories = _subCategoryService.GetSubCategoriesByCategoryID(category.ID); return(View(_bookService.GetBooksBySubCategoryID(id))); }
// GET: api/SubCategories public IEnumerable <SubCategory> Get() { return(_subCategoryService.Get()); }
public async Task <IEnumerable <SubCategoryViewModel> > GetModifiedRecords(DateTime?lastSyncTime) { return(await service.Get(lastSyncTime)); }
public async Task <IActionResult> Details(Guid id) { var getService = await _subCategoryService.Get(id); return(View(getService.Result)); }