public static webModel.PaymentMethod ToWebModel(this coreModel.PaymentMethod method)
		{
			var retVal = new webModel.PaymentMethod();
			retVal.InjectFrom(method);
			if(method.Settings != null)
				retVal.Settings = method.Settings.Select(x => x.ToWebModel()).ToList();

			return retVal;
		}
Ejemplo n.º 2
0
        public static coreModel.PaymentMethod ToCoreModel(this webModel.PaymentMethod webMethod, coreModel.PaymentMethod paymentMethod)
        {
            var retVal = paymentMethod;

            retVal.InjectFrom(webMethod);
            if (webMethod.Settings != null)
            {
                retVal.Settings = webMethod.Settings.Select(x => x.ToCoreModel()).ToList();
            }
            return(retVal);
        }
Ejemplo n.º 3
0
        public static webModel.PaymentMethod ToWebModel(this coreModel.PaymentMethod method)
        {
            var retVal = new webModel.PaymentMethod();

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

            return(retVal);
        }