/// <summary> /// Update a <see cref="Fed"/> object passed as an argument. /// </summary> /// <param name="aFanKey">A <see cref="FanKey"/> object.</param> /// <param name="aFed">A <see cref="Fed"/> object.</param> /// <exception cref="ArgumentNullException">If <c>aFed</c> argument is <c>null</c>.</exception> public static void Update(FanKey aFanKey, Fed aFed) { if (aFed == null) { throw new ArgumentNullException("Update Fed Business"); } //if (!FanFunctionAccessData.HasModeAccess(aFanKey, "Fed", AccessMode.Update)) //{ // throw new ZpAccessException("Access Denied", String.Format("{0}", aFanKey.FednKey), AccessMode.Update, "Fed"); //} FedData.Update(aFed); }
/// <summary> /// The overloaded Load method that will return a <see cref="FedCollection"/>. /// </summary> /// <param name="aFanKey">A <see cref="FanKey"/> object.</param> /// <param name="aFedCollection">A <see cref="FedCollection"/> object.</param> /// <exception cref="ArgumentNullException">If <c>aFedCollection</c> argument is <c>null</c>.</exception> public static void Load(FanKey aFanKey, FedCollection aFedCollection) { if (aFedCollection == null) { throw new ArgumentNullException("Load Fed Business"); } //if (!FanFunctionAccessData.HasModeAccess(aFanKey, "Fed", AccessMode.List)) //{ // throw new ZpAccessException("Access Denied", String.Format("{0}", aFanKey.FednKey), AccessMode.List, "Fed"); //} FedData.Load(aFedCollection); }