/// <summary> /// The <c>DeleteFanRole</c> implementation method deserializes an incoming XML Argument as a new <see cref="FanRole"/> object. /// It invokes the <c>Delete</c> method of <see cref="FanRoleBusiness"/> with the newly deserialized <see cref="FanRole"/> object. /// Finally, it returns the Deleted object unchanged as a serialized <c>string</c> of XML. /// </summary> /// <param name="aXmlArgument">A XML Argument <see cref="string"/>.</param> /// <returns><see cref="FanRole"/> as XML <see cref="string"/>.</returns> /// <exception cref="ArgumentNullException">If <c>aXmlArgument</c> is <c>null</c>.</exception> public static string DeleteFanRole(FanKey aFanKey, string aXmlArgument) { if (aXmlArgument == null) { throw new ArgumentNullException("aXmlArgument of DeleteFanRole"); } FanRole vFanRole = new FanRole(); vFanRole = XmlUtils.Deserialize <FanRole>(aXmlArgument); FanRoleBusiness.Delete(aFanKey, vFanRole); return(XmlUtils.Serialize <FanRole>(vFanRole, true)); }
/// <summary> /// The <c>GetFanRoleCollection</c> implementation method deserializes an incoming XML Argument <see cref="string"/> as a new <see cref="FanRoleCollection"/> object. /// It invokes the <c>Insert</c> method of <see cref="FanRoleBusiness"/> with the newly deserialized <see cref="FanRoleCollection"/> object. /// Finally, it returns the collection object as a serialized <see cref="string"/> of XML. /// </summary> /// <param name="aXmlArgument">XML Argument <see cref="string"/>.</param> /// <returns><see cref="FanRoleCollection"/> as XML <see cref="string"/>.</returns> /// <exception cref="ArgumentNullException">If <c>aXmlArgument</c> is <c>null</c>.</exception> public static string GetFanRoleCollection(FanKey aFanKey, string aXmlArgument) { if (aXmlArgument == null) { throw new ArgumentNullException("aXmlArgument of GetFanRoleCollection"); } FanRoleCollection vFanRoleCollection = new FanRoleCollection(); vFanRoleCollection = XmlUtils.Deserialize <FanRoleCollection>(aXmlArgument); FanRoleBusiness.Load(aFanKey, vFanRoleCollection); return(XmlUtils.Serialize <FanRoleCollection>(vFanRoleCollection, true)); }