Beispiel #1
0
        public static PaymentMethodViewModel ToModel(this PaymentMethod model)
        {
            if (model == null)
            {
                return(null);
            }

            var pamentMethod = new PaymentMethodViewModel
            {
                ImageUrl = model.ImageUrl,
                Status   = model.Status,
                PaymentMethodSystemName = model.GetLocalized(x => x.PaymentMethodSystemName, model.Id),
                Description             = model.GetLocalized(x => x.Description, model.Id),
            };

            return(pamentMethod);
        }