public IEnumerable <ScheduleItemDto> GetBySchedule(int schedule_id)
        {
            try
            {
                var scheduleItems = _repository.GetBySchedule(schedule_id);

                if (scheduleItems == null)
                {
                    _logger.LogError($"ScheduleItems with schedule id: {schedule_id}, hasn't been found in db.");
                    return(null);
                }

                _logger.LogInfo($"Returned ScheduleItem with schedule id: {schedule_id}");

                var Result = _mapper.Map <IEnumerable <ScheduleItemDto> >(scheduleItems);
                return(Result);
            }
            catch (Exception ex)
            {
                _logger.LogError($"Something went wrong inside GetScheduleItemBySchedule action: {ex.Message}");
                throw new Exception();
            }
        }