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