Beispiel #1
0
        public async Task <ShowRate> PostAsync(ShowRate showRate)
        {
            await _context.ShowRates.AddAsync(showRate);

            await _context.SaveChangesAsync();

            return(showRate);
        }
Beispiel #2
0
        public async Task <Show> UpdateShowAsync(Show show)
        {
            _context.Shows.Update(show);
            await _context.SaveChangesAsync();

            return(show);
        }