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