You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ScheduleController.cs 588B

1234567891011121314151617181920
  1. namespace Diligent.WebAPI.Host.Controllers.V1
  2. {
  3. [ApiVersion("1.0")]
  4. [Route("v{version:apiVersion}/schedule")]
  5. [ApiController]
  6. public class ScheduleController:ControllerBase
  7. {
  8. private readonly IScheduleService _scheduleService;
  9. public ScheduleController(IScheduleService scheduleService)
  10. {
  11. _scheduleService = scheduleService;
  12. }
  13. [HttpGet]
  14. public async Task<IActionResult> GetSchedule(int month,int year) =>
  15. Ok(await _scheduleService.GetScheduleForCertainPeriod(month, year));
  16. }
  17. }