public async Task <ActionResult> GetCategorizedVideos(string category) { var videos = await _videosRepo.GetCategorizedVideos(category); var filteredVideos = _mapper.Map <List <MissionVideoGetDto> >(videos); if (filteredVideos.Count == 0) { _logger.LogError("In videos controller, get categorized videos counted was 0"); return(NotFound("No videos found")); } return(Ok(filteredVideos)); }