public static XElement ToXElement(StatNationPopup obj) { return(new XElement("rec", new XElement("CustomerId", obj.CustomerId), new XElement("NameNation", obj.NameNation), new XElement("Qty", obj.Qty))); }
public static void SetXmlValues(XContainer element, StatNationPopup obj) { element.GetXElement("CustomerId").SetValue(obj.CustomerId); element.GetXElement("NameNation").SetValue(obj.NameNation); element.GetXElement("Qty").SetValue(obj.Qty); }