namespace Diligent.WebAPI.Host.Controllers.V1 { [ApiVersion("1.0")] [Route("v{version:apiVersion}/schedule")] [ApiController] public class ScheduleController:ControllerBase { private readonly IScheduleService _scheduleService; public ScheduleController(IScheduleService scheduleService) { _scheduleService = scheduleService; } [Authorize] [HttpGet] public async Task GetSchedule(int month,int year) => Ok(await _scheduleService.GetScheduleForCertainPeriod(month, year)); } }