public IActionResult Index()
        {
            //Receive list from method Find All
            var list = _scheduleService.FindAll();

            return(View(list));
        }
        public ActionResult <Api <List <ScheduleDTO> > > GetAll()
        {
            List <ScheduleDTO> dtos = _scheduleService.FindAll();

            Api <List <ScheduleDTO> > result = new Api <List <ScheduleDTO> >(200, dtos, "Success", null);

            return(Ok(result));
        }
        public void SchedulesFindAllTest()
        {
            OpenConnection();

            scheduleService.FindAll();

            CloseConnection();
        }