public async Task <IActionResult> AddTourWithShows([FromBody] TourWithShowsForCreation tour)
 {
     if (tour == null)
     {
         return(BadRequest());
     }
     return(await AddSpecificTour(tour));
 }
Exemple #2
0
        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));
        }
Exemple #3
0
 public async Task <IActionResult> AddTourWithShows([FromBody] TourWithShowsForCreation tour)
 {
     return(await AddSpecificTour(tour));
 }