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)); } }