예제 #1
0
 public bool Delete(global::MongoDB.Bson.ObjectId id)
 {
     try
     {
         return(Collection().DeleteOne(m => m.Id == id).DeletedCount == 1);
     }
     catch (Exception)
     {
         return(false);
     }
 }
예제 #2
0
 public T SearchById(global::MongoDB.Bson.ObjectId id)
 {
     try
     {
         return(Collection().Find(e => e.Id == id).SingleOrDefault());
     }
     catch (Exception)
     {
         return(null);
     }
 }
예제 #3
0
 public List <MEPatientProgramResponse> GetStepResponses(global::MongoDB.Bson.ObjectId stepId, string contractNumber, string userId)
 {
     throw new NotImplementedException();
 }