public void RemoveAccommodation(Accommodation accommodationIn) { _accommodations.DeleteOne(accommodation => accommodation.Id == accommodationIn.Id); }
public void UpdateAccommodation(string id, Accommodation accommodationIn) { _accommodations.ReplaceOne(accommodation => accommodation.Id == id, accommodationIn); }
public Accommodation InsertAccommodation(Accommodation accommodation) { accommodation.Id = Guid.NewGuid().ToString(); _accommodations.InsertOne(accommodation); return(accommodation); }