public async Task <IActionResult> GetSubCategories() { var sections = await _repo.GetSubCategorys(); var sectionsToReturn = _mapper.Map <IEnumerable <SubCategoryReturnDTO> >(sections); return(Ok(sectionsToReturn)); }
public async Task <IActionResult> GetSubCategories() { var sections = await _repo.GetSubCategorys(); var sectionsToReturn = _mapper.Map <IEnumerable <SubCategoryReturnDTO> >(sections); return(Ok(sectionsToReturn)); }