public async Task <ActionResult <int> > GetReservedPerSchedule(int id) { if (await scheduleLogic.FindByIdAsync(id) == null) { return(NotFound()); } return(Ok(await scheduleLogic.GetReserved(id))); }