Exemple #1
0
        public static bool Update(PGArea model)
        {
            if (model == null)
            {
                throw new ArgumentNullException("model");
            }

            IPGArea factory = PGAreaFactory.GetFactory();
            bool    result  = factory.Update(model);

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

            model.AreaID = GuidGenerator.GetGuid().ToString();
            IPGArea factory = PGAreaFactory.GetFactory();
            bool    result  = factory.Add(model);

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