| 123456789101112131415161718192021 |
- 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<IActionResult> GetSchedule(int month,int year) =>
- Ok(await _scheduleService.GetScheduleForCertainPeriod(month, year));
-
- }
- }
|