public async Task <ActionResult <IEnumerable <CategoryDto> > > GetCategory()
        {
            var cat = await _categoryRepo.GetCategoryWithCourses();

            return(Ok(_mapper.Map <IEnumerable <CategoryDto> >(cat)));
        }