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); }
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); }