Example #1
0
        public virtual BOSalesPersonQuotaHistory MapEFToBO(
            SalesPersonQuotaHistory ef)
        {
            var bo = new BOSalesPersonQuotaHistory();

            bo.SetProperties(
                ef.BusinessEntityID,
                ef.ModifiedDate,
                ef.QuotaDate,
                ef.Rowguid,
                ef.SalesQuota);
            return(bo);
        }
        public virtual BOSalesPersonQuotaHistory MapModelToBO(
            int businessEntityID,
            ApiSalesPersonQuotaHistoryRequestModel model
            )
        {
            BOSalesPersonQuotaHistory boSalesPersonQuotaHistory = new BOSalesPersonQuotaHistory();

            boSalesPersonQuotaHistory.SetProperties(
                businessEntityID,
                model.ModifiedDate,
                model.QuotaDate,
                model.Rowguid,
                model.SalesQuota);
            return(boSalesPersonQuotaHistory);
        }