public IEnumerable <Cours> GetAllCoursesByCategoryId(int id) { try { return(_coursesRepo.GetAllCoursesbyCategoryId(id)); } catch (Exception ex) { _logger.Error(ex.Message, ex); throw ex; } }