コード例 #1
0
		public static webModel.TaxProvider ToWebModel(this coreModel.TaxProvider method)
		{
			var retVal = new webModel.TaxProvider();
			retVal.InjectFrom(method);
			if(method.Settings != null)
				retVal.Settings = method.Settings.Select(x => x.ToWebModel()).ToList();

			return retVal;
		}
コード例 #2
0
        public static coreModel.TaxProvider ToCoreModel(this webModel.TaxProvider webTaxProvider, coreModel.TaxProvider taxProvider)
        {
            var retVal = taxProvider;

            retVal.InjectFrom(webTaxProvider);
            if (webTaxProvider.Settings != null)
            {
                retVal.Settings = webTaxProvider.Settings.Select(x => x.ToCoreModel()).ToList();
            }
            return(retVal);
        }
コード例 #3
0
        public static webModel.TaxProvider ToWebModel(this coreModel.TaxProvider method)
        {
            var retVal = new webModel.TaxProvider();

            retVal.InjectFrom(method);
            if (method.Settings != null)
            {
                retVal.Settings = method.Settings.Select(x => x.ToWebModel()).ToList();
            }

            return(retVal);
        }