public virtual BOSalesPerson MapEFToBO(
            SalesPerson ef)
        {
            var bo = new BOSalesPerson();

            bo.SetProperties(
                ef.BusinessEntityID,
                ef.Bonus,
                ef.CommissionPct,
                ef.ModifiedDate,
                ef.Rowguid,
                ef.SalesLastYear,
                ef.SalesQuota,
                ef.SalesYTD,
                ef.TerritoryID);
            return(bo);
        }
Ejemplo n.º 2
0
        public virtual BOSalesPerson MapModelToBO(
            int businessEntityID,
            ApiSalesPersonRequestModel model
            )
        {
            BOSalesPerson boSalesPerson = new BOSalesPerson();

            boSalesPerson.SetProperties(
                businessEntityID,
                model.Bonus,
                model.CommissionPct,
                model.ModifiedDate,
                model.Rowguid,
                model.SalesLastYear,
                model.SalesQuota,
                model.SalesYTD,
                model.TerritoryID);
            return(boSalesPerson);
        }