Ejemplo n.º 1
0
        public IActionResult GetBusyDays(int?year, int?month)
        {
            if (!year.HasValue || !month.HasValue)
            {
                return(BadRequest());
            }

            try
            {
                return(Ok(eventBase.GetBusyDays(year.Value, month.Value)));
            }
            catch
            {
                return(StatusCode(500));
            }
        }