public IEnumerable <SubcategoryViewModel> GetAllSubcategoriesByCategoryName(string categoryName) { var subcategories = _iSubcategoryRepository.GetAllByCategoryName(categoryName).Select(x => x.ToViewModel()); return(subcategories); }
public IEnumerable <SubcategoryViewModel> GetAllSubcategoriesByCategoryName(string categoryName) { var subcategories = _iSubcategoryRepository.GetAllByCategoryName(categoryName).Select(x => x.ToViewModel()); return(subcategories); }