public async Task <IActionResult> GetSubCategoryWhereCatgeoryId(int CatgeoryId) { var sectionFroRepo = await _repo.GetSubCategoryWhereCatgeoryId(CatgeoryId); var sections = _mapper.Map <IEnumerable <SubCategoryReturnDTO> >(sectionFroRepo); if ((sectionFroRepo == null)) { return(NotFound()); } return(Ok(sections)); }