Beispiel #1
0
        public async Task <VenueVm> AddVenueAsync(VenueVm venue)
        {
            var result = await _venueService.AddVenueAsync(venue).ConfigureAwait(false);

            _cache.Remove(nameof(GetAllVenuesAsync));

            return(result);
        }
Beispiel #2
0
 public Task <VenueVm> AddVenue([FromBody] VenueVm venue)
 => _venueService.AddVenueAsync(venue);