public static dataModel.StoreTaxProvider ToDataModel(this coreModel.TaxProvider taxProvider)
        {
            if (taxProvider == null)
                throw new ArgumentNullException("taxProvider");

            var retVal = new dataModel.StoreTaxProvider();

            retVal.InjectFrom(taxProvider);

            return retVal;
        }
        /// <summary>
        /// Patch changes
        /// </summary>
        /// <param name="source"></param>
        /// <param name="target"></param>
        public static void Patch(this dataModel.StoreTaxProvider source, dataModel.StoreTaxProvider target)
        {
            if (target == null)
            {
                throw new ArgumentNullException("target");
            }
            var patchInjectionPolicy = new PatchInjection <dataModel.StoreTaxProvider>(x => x.LogoUrl, x => x.Name,
                                                                                       x => x.Description, x => x.Priority,
                                                                                       x => x.IsActive);

            target.InjectFrom(patchInjectionPolicy, source);
        }
        public static dataModel.StoreTaxProvider ToDataModel(this coreModel.TaxProvider taxProvider)
        {
            if (taxProvider == null)
            {
                throw new ArgumentNullException("taxProvider");
            }

            var retVal = new dataModel.StoreTaxProvider();

            retVal.InjectFrom(taxProvider);

            return(retVal);
        }