Esempio n. 1
0
        public static bool AddDefualt(ParkArea model)
        {
            if (model == null)
            {
                throw new ArgumentNullException("model");
            }
            IParkArea factory = ParkAreaFactory.GetFactory();
            bool      result  = factory.Add(model);

            if (result)
            {
                OperateLogServices.AddOperateLog <ParkArea>(model, OperateType.Add);
            }
            return(result);
        }
Esempio n. 2
0
        public static bool Add(ParkArea model)
        {
            if (model == null)
            {
                throw new ArgumentNullException("model");
            }

            model.AreaID = GuidGenerator.GetGuid().ToString();
            IParkArea factory = ParkAreaFactory.GetFactory();
            bool      result  = factory.Add(model);

            if (result)
            {
                OperateLogServices.AddOperateLog <ParkArea>(model, OperateType.Add);
            }
            return(result);
        }