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