Пример #1
0
 public static int Update(Expression <Func <Mongo_PersonBill, bool> > filter, Mongo_PersonBill obj)
 {
     try
     {
         using (var access = new Mongo_PersonBillAccess())
         {
             return(access.Update(filter, obj));
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #2
0
 public static string Insert(Mongo_PersonBill obj)
 {
     try
     {
         using (var access = new Mongo_PersonBillAccess())
         {
             return(access.Insert(obj));
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }