public async Task <IActionResult> AddTourWithShows([FromBody] TourWithShowsForCreation tour) { if (tour == null) { return(BadRequest()); } return(await AddSpecificTour(tour)); }
public async Task <IActionResult> AddTourWithShows( [FromBody] TourWithShowsForCreation tour) { if (tour == null) { return(BadRequest()); } // validation of the DTO happens here // the rest is the same as for other actions. return(await AddSpecificTour(tour)); }
public async Task <IActionResult> AddTourWithShows([FromBody] TourWithShowsForCreation tour) { return(await AddSpecificTour(tour)); }