Beispiel #1
0
        public void DeleteApartment(int apartmentId)
        {
            Apartment student = _currentContext.Apartments.Find(apartmentId);

            _currentContext.Apartments.Remove(student);
        }
Beispiel #2
0
 public void UpdateApartment(Apartment apartment)
 {
     _currentContext.Entry(apartment).State = EntityState.Modified;
 }
Beispiel #3
0
 public void InsertAppartment(Apartment appartment)
 {
     _currentContext.Apartments.Add(appartment);
 }