Ejemplo n.º 1
0
        public IActionResult GetByStage(int id)
        {
            try
            {
                var schedules = _scheduleLogic.GetByStage(id);

                if (schedules == null)
                {
                    return(NotFound());
                }

                return(Ok(schedules));
            }
            catch (Exception ex)
            {
                return(StatusCode(500, "Internal server error"));
            }
        }