public virtual BOCustomer MapEFToBO(
            Customer ef)
        {
            var bo = new BOCustomer();

            bo.SetProperties(
                ef.CustomerID,
                ef.AccountNumber,
                ef.ModifiedDate,
                ef.PersonID,
                ef.Rowguid,
                ef.StoreID,
                ef.TerritoryID);
            return(bo);
        }
Esempio n. 2
0
        public virtual BOCustomer MapModelToBO(
            int customerID,
            ApiCustomerRequestModel model
            )
        {
            BOCustomer boCustomer = new BOCustomer();

            boCustomer.SetProperties(
                customerID,
                model.AccountNumber,
                model.ModifiedDate,
                model.PersonID,
                model.Rowguid,
                model.StoreID,
                model.TerritoryID);
            return(boCustomer);
        }