public async Task <IActionResult> AddTourWithManagerAndShows([FromBody] TourWithManagerAndShowsForCreation tour) { if (tour == null) { return(BadRequest()); } return(await AddSpecificTour(tour)); }
public async Task <IActionResult> AddTourWithManagerAndShows( [FromBody] TourWithManagerAndShowsForCreation 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> AddTourWithManagerAndShows([FromBody] TourWithManagerAndShowsForCreation tour) => await AddSpecificTour(tour);
public async Task <IActionResult> AddTourWithManagerAndShows([FromBody] TourWithManagerAndShowsForCreation tour) { return(await AddSpecificTour <TourWithManagerAndShowsForCreation>(tour)); }