예제 #1
0
 private void UpdateFilmTheatre(UpdateFilmTheatreRequest request, FilmTheatre filmTheatre)
 {
     filmTheatre.StartDistributionDate = request.StartDistributionDate.Value;
     filmTheatre.EndDistributionDate   = request.EndDistributionDate.Value;
     filmTheatre.AmountOfPeople        = request.AmountOfPeople.Value;
     filmTheatre.BoxOfficePerMovie     = request.BoxOffice.Value;
 }
        public async Task UpdateFilmTheatreAsync(FilmTheatre filmTheatre)
        {
            _context.Entry(filmTheatre).State = EntityState.Modified;

            await _context.SaveChangesAsync();
        }
        public async Task AddFilmTheatreAsync(FilmTheatre filmTheatre)
        {
            _filmTheatreDataSet.Add(filmTheatre);

            await _context.SaveChangesAsync();
        }