Exemplo n.º 1
0
        public CreateUpdateConcertResponse UpdateConcert(long id, [FromUri] bool tweetConcert, [FromBody] Concert concert)
        {
            var requestId = Guid.NewGuid().ToString("N");

            RequestValidator.ValidateWebRequestHeaders(Request);
            ConcertValidator.ValidateUpdateConcert(concert);

            var responseModel = _concertService.UpdateConcert(requestId, concert);

            responseModel.TweetUrl = tweetConcert ? _tweetService.TweetConcert(concert) : string.Empty;

            return(responseModel);
        }