public static bool AddDefault(string CarTypeID, DbOperator dbOperator) { if (string.IsNullOrWhiteSpace(CarTypeID)) { throw new ArgumentNullException("CarTypeID"); } IParkCarTypeSingle factory = ParkCarTypeSingleFactory.GetFactory(); return(factory.Add(GetDefaultParkCarTypeSingles(CarTypeID), dbOperator)); }
public static List <ParkCarTypeSingle> QueryParkCarTypeByCarTypeID(string cardtypeID) { if (string.IsNullOrWhiteSpace(cardtypeID)) { throw new ArgumentNullException("recordId"); } IParkCarTypeSingle factory = ParkCarTypeSingleFactory.GetFactory(); return(factory.QueryParkCarTypeByCarTypeID(cardtypeID)); }
public static bool Update(ParkCarTypeSingle model) { if (model == null) { throw new ArgumentNullException("model"); } IParkCarTypeSingle factory = ParkCarTypeSingleFactory.GetFactory(); bool result = factory.Update(model); if (result) { OperateLogServices.AddOperateLog <ParkCarTypeSingle>(model, OperateType.Update); } return(result); }
public static bool Add(ParkCarTypeSingle model) { if (model == null) { throw new ArgumentNullException("model"); } IParkCarTypeSingle factory = ParkCarTypeSingleFactory.GetFactory(); model.SingleID = GuidGenerator.GetGuidString(); bool result = factory.Add(model); if (result) { OperateLogServices.AddOperateLog <ParkCarTypeSingle>(model, OperateType.Add); } return(result); }