/// <summary> /// Convert a nettiers collection to the ws proxy collection. /// </summary> public static VSalesPerson Convert(WsProxy.VSalesPerson item) { VSalesPerson outItem = new VSalesPerson(); outItem.SalesPersonId = item.SalesPersonId; outItem.Title = item.Title; outItem.FirstName = item.FirstName; outItem.MiddleName = item.MiddleName; outItem.LastName = item.LastName; outItem.Suffix = item.Suffix; outItem.JobTitle = item.JobTitle; outItem.Phone = item.Phone; outItem.EmailAddress = item.EmailAddress; outItem.EmailPromotion = item.EmailPromotion; outItem.AddressLine1 = item.AddressLine1; outItem.AddressLine2 = item.AddressLine2; outItem.City = item.City; outItem.StateProvinceName = item.StateProvinceName; outItem.PostalCode = item.PostalCode; outItem.CountryRegionName = item.CountryRegionName; outItem.TerritoryName = item.TerritoryName; outItem.TerritoryGroup = item.TerritoryGroup; outItem.SalesQuota = item.SalesQuota; outItem.SalesYtd = item.SalesYtd; outItem.SalesLastYear = item.SalesLastYear; outItem.AcceptChanges(); return(outItem); }
/// <summary> /// Convert a nettiers entity to the ws proxy entity. /// </summary> public static WsProxy.VSalesPerson Convert(VSalesPerson item) { WsProxy.VSalesPerson outItem = new WsProxy.VSalesPerson(); outItem.SalesPersonId = item.SalesPersonId; outItem.Title = item.Title; outItem.FirstName = item.FirstName; outItem.MiddleName = item.MiddleName; outItem.LastName = item.LastName; outItem.Suffix = item.Suffix; outItem.JobTitle = item.JobTitle; outItem.Phone = item.Phone; outItem.EmailAddress = item.EmailAddress; outItem.EmailPromotion = item.EmailPromotion; outItem.AddressLine1 = item.AddressLine1; outItem.AddressLine2 = item.AddressLine2; outItem.City = item.City; outItem.StateProvinceName = item.StateProvinceName; outItem.PostalCode = item.PostalCode; outItem.CountryRegionName = item.CountryRegionName; outItem.TerritoryName = item.TerritoryName; outItem.TerritoryGroup = item.TerritoryGroup; outItem.SalesQuota = item.SalesQuota; outItem.SalesYtd = item.SalesYtd; outItem.SalesLastYear = item.SalesLastYear; return outItem; }