// GET: SubCategory
        public async Task <ActionResult> ListFromCategory(int id)
        {
            ViewData["Category"] = await _categoryService.GetCategoryNameById(id);

            var subCategory = await _subCategoryService.GetAllByCategory(id);

            var model = _mapper.Map <IEnumerable <SubCategoryViewModel> >(subCategory);

            return(View("Index", model));
        }