Ejemplo n.º 1
0
 public static VirtoCommerce.Web.Models.PaymentMethod AsWebModel(this Data.PaymentMethod paymentMethod)
 {
     return(new VirtoCommerce.Web.Models.PaymentMethod
     {
         Code = paymentMethod.GatewayCode,
         Description = paymentMethod.Description,
         LogoUrl = paymentMethod.IconUrl,
         Title = paymentMethod.Name,
         Priority = paymentMethod.Priority,
         Type = paymentMethod.Type.ToString()
     });
 }
Ejemplo n.º 2
0
 public static VirtoCommerce.Web.Models.PaymentMethod AsWebModel(this Data.PaymentMethod paymentMethod)
 {
     return(new VirtoCommerce.Web.Models.PaymentMethod
     {
         Code = paymentMethod.GatewayCode,
         Description = paymentMethod.Description,
         LogoUrl = paymentMethod.IconUrl,
         Title = paymentMethod.Name,
         Priority = paymentMethod.Priority,
         Type = paymentMethod.Type,
         Group = paymentMethod.Group,
         IsAvailableForPartial = paymentMethod.IsAvailableForPartial
     });
 }