public virtual ApiSalesPersonQuotaHistoryResponseModel MapBOToModel(
            BOSalesPersonQuotaHistory boSalesPersonQuotaHistory)
        {
            var model = new ApiSalesPersonQuotaHistoryResponseModel();

            model.SetProperties(boSalesPersonQuotaHistory.BusinessEntityID, boSalesPersonQuotaHistory.ModifiedDate, boSalesPersonQuotaHistory.QuotaDate, boSalesPersonQuotaHistory.Rowguid, boSalesPersonQuotaHistory.SalesQuota);

            return(model);
        }
Exemple #2
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);
        }
Exemple #3
0
        public virtual SalesPersonQuotaHistory MapBOToEF(
            BOSalesPersonQuotaHistory bo)
        {
            SalesPersonQuotaHistory efSalesPersonQuotaHistory = new SalesPersonQuotaHistory();

            efSalesPersonQuotaHistory.SetProperties(
                bo.BusinessEntityID,
                bo.ModifiedDate,
                bo.QuotaDate,
                bo.Rowguid,
                bo.SalesQuota);
            return(efSalesPersonQuotaHistory);
        }
        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);
        }