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