public virtual ApiVendorResponseModel MapBOToModel(
            BOVendor boVendor)
        {
            var model = new ApiVendorResponseModel();

            model.SetProperties(boVendor.BusinessEntityID, boVendor.AccountNumber, boVendor.ActiveFlag, boVendor.CreditRating, boVendor.ModifiedDate, boVendor.Name, boVendor.PreferredVendorStatu, boVendor.PurchasingWebServiceURL);

            return(model);
        }
        public virtual BOVendor MapEFToBO(
            Vendor ef)
        {
            var bo = new BOVendor();

            bo.SetProperties(
                ef.BusinessEntityID,
                ef.AccountNumber,
                ef.ActiveFlag,
                ef.CreditRating,
                ef.ModifiedDate,
                ef.Name,
                ef.PreferredVendorStatu,
                ef.PurchasingWebServiceURL);
            return(bo);
        }
        public virtual Vendor MapBOToEF(
            BOVendor bo)
        {
            Vendor efVendor = new Vendor();

            efVendor.SetProperties(
                bo.AccountNumber,
                bo.ActiveFlag,
                bo.BusinessEntityID,
                bo.CreditRating,
                bo.ModifiedDate,
                bo.Name,
                bo.PreferredVendorStatu,
                bo.PurchasingWebServiceURL);
            return(efVendor);
        }
        public virtual BOVendor MapModelToBO(
            int businessEntityID,
            ApiVendorRequestModel model
            )
        {
            BOVendor boVendor = new BOVendor();

            boVendor.SetProperties(
                businessEntityID,
                model.AccountNumber,
                model.ActiveFlag,
                model.CreditRating,
                model.ModifiedDate,
                model.Name,
                model.PreferredVendorStatu,
                model.PurchasingWebServiceURL);
            return(boVendor);
        }