Esempio n. 1
0
 public void Update(RealizationPlace realizationPlace)
 {
     if (realizationPlace != null)
     {
         _trackingContext.Entry(realizationPlace).State = EntityState.Modified;
     }
 }
Esempio n. 2
0
        public void Delete(RealizationPlace realizationPlace)
        {
            var placeToDelete = _trackingContext.RealizationPlaces.FirstOrDefault(r => r.Id == realizationPlace.Id);

            if (placeToDelete != null)
            {
                _trackingContext.RealizationPlaces.Remove(placeToDelete);
            }
        }
Esempio n. 3
0
 public void Add(RealizationPlace realizationPlace)
 {
     _trackingContext.RealizationPlaces.Add(realizationPlace);
 }