Beispiel #1
0
        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());
 }
Beispiel #3
0
 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));
        }