Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        public static List <ParkCarTypeSingle> QueryParkCarTypeByCarTypeID(string cardtypeID)
        {
            if (string.IsNullOrWhiteSpace(cardtypeID))
            {
                throw new ArgumentNullException("recordId");
            }

            IParkCarTypeSingle factory = ParkCarTypeSingleFactory.GetFactory();

            return(factory.QueryParkCarTypeByCarTypeID(cardtypeID));
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }