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; } }
public static string Insert(Mongo_PersonBill obj) { try { using (var access = new Mongo_PersonBillAccess()) { return(access.Insert(obj)); } } catch (Exception ex) { throw ex; } }