public virtual ApiSalesTerritoryHistoryResponseModel MapBOToModel(
            BOSalesTerritoryHistory boSalesTerritoryHistory)
        {
            var model = new ApiSalesTerritoryHistoryResponseModel();

            model.SetProperties(boSalesTerritoryHistory.BusinessEntityID, boSalesTerritoryHistory.EndDate, boSalesTerritoryHistory.ModifiedDate, boSalesTerritoryHistory.Rowguid, boSalesTerritoryHistory.StartDate, boSalesTerritoryHistory.TerritoryID);

            return(model);
        }
        public virtual BOSalesTerritoryHistory MapEFToBO(
            SalesTerritoryHistory ef)
        {
            var bo = new BOSalesTerritoryHistory();

            bo.SetProperties(
                ef.BusinessEntityID,
                ef.EndDate,
                ef.ModifiedDate,
                ef.Rowguid,
                ef.StartDate,
                ef.TerritoryID);
            return(bo);
        }
        public virtual SalesTerritoryHistory MapBOToEF(
            BOSalesTerritoryHistory bo)
        {
            SalesTerritoryHistory efSalesTerritoryHistory = new SalesTerritoryHistory();

            efSalesTerritoryHistory.SetProperties(
                bo.BusinessEntityID,
                bo.EndDate,
                bo.ModifiedDate,
                bo.Rowguid,
                bo.StartDate,
                bo.TerritoryID);
            return(efSalesTerritoryHistory);
        }
        public virtual BOSalesTerritoryHistory MapModelToBO(
            int businessEntityID,
            ApiSalesTerritoryHistoryRequestModel model
            )
        {
            BOSalesTerritoryHistory boSalesTerritoryHistory = new BOSalesTerritoryHistory();

            boSalesTerritoryHistory.SetProperties(
                businessEntityID,
                model.EndDate,
                model.ModifiedDate,
                model.Rowguid,
                model.StartDate,
                model.TerritoryID);
            return(boSalesTerritoryHistory);
        }