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