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