public GetSlotByTeacherResponse GetSlotByTeacher(GetSlotByTeacherRequest request)
        {
            GetSlotByTeacherResponse response = new GetSlotByTeacherResponse();

            if (request.RoleName.Equals(Constants.UserRole.Teacher))
            {
                var slotInformationList = (from sd in _context.Schedules
                                           join sc in _context.Slots
                                           on sd.SlotId equals sc.SlotId
                                           join cs in _context.Courses
                                           on sd.CourseId equals cs.CourseId
                                           join cl in _context.Classes
                                           on sd.ClassId equals cl.ClassId
                                           where sd.TeacherId == request.UserId && sd.Date == request.date
                                           select new SlotInformation()
                {
                    Slot = new SlotDto()
                    {
                        SlotId = sd.SlotId,
                        StartTime = sc.StartTime,
                        EndTime = sc.EndTime
                    },
                    Course = new CourseDto()
                    {
                        CourseId = sd.CourseId,
                        CourseName = cs.CourseName
                    },
                    Classes = new ClassDto()
                    {
                        ClassId = sd.ClassId,
                        ClassName = cl.ClassName
                    }
                }).Distinct().ToList();
                response.SlotInformationList = slotInformationList;
                return(response);
            }
            return(response);
        }
        public GetSlotByTeacherResponse GetSlotByTeacher(GetSlotByTeacherRequest request)
        {
            var response = _businessLogic.GetSlotByTeacher(request);

            return(response);
        }