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

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