public void Remove(LocationCitizen locationCitizenIn) => _locationcitizen.DeleteOne(locationcitizen => locationcitizen.SSN == locationCitizenIn.SSN);
public void Update(String ssn, LocationCitizen locationCitizenIn) => _locationcitizen.ReplaceOne(locationcitizen => locationcitizen.SSN == ssn, locationCitizenIn);
public void Remove(LocationCitizen locationCitizenIn) => _locationcitizens.DeleteOne(locationcitizen => locationcitizen.SocialSecurityNumber == locationCitizenIn.SocialSecurityNumber);
//CRUD operations public LocationCitizen Create(LocationCitizen locationCitizen) { _locationcitizen.InsertOne(locationCitizen); return(locationCitizen); }
public void Update(String socialSecurityNumber, LocationCitizen locationCitizenIn) => _locationcitizens.ReplaceOne(locationcitizen => locationcitizen.SocialSecurityNumber == socialSecurityNumber, locationCitizenIn);