public IActionResult GetAllSchedules() { try { var schedules = _scheduleLogic.GetAll(); return(Ok(schedules)); } catch (Exception ex) { return(StatusCode(500, "Internal server error")); } }