Пример #1
0
        public virtual BOVendor MapEFToBO(
            Vendor ef)
        {
            var bo = new BOVendor();

            bo.SetProperties(
                ef.BusinessEntityID,
                ef.AccountNumber,
                ef.ActiveFlag,
                ef.CreditRating,
                ef.ModifiedDate,
                ef.Name,
                ef.PreferredVendorStatu,
                ef.PurchasingWebServiceURL);
            return(bo);
        }
Пример #2
0
        public virtual BOVendor MapModelToBO(
            int businessEntityID,
            ApiVendorRequestModel model
            )
        {
            BOVendor boVendor = new BOVendor();

            boVendor.SetProperties(
                businessEntityID,
                model.AccountNumber,
                model.ActiveFlag,
                model.CreditRating,
                model.ModifiedDate,
                model.Name,
                model.PreferredVendorStatu,
                model.PurchasingWebServiceURL);
            return(boVendor);
        }