Ejemplo n.º 1
0
 public ActionResult Index()
 {
     var method = paymentMethodService.FindAll().ToList();
     var model = new PaymentMethodsViewModel
     {
         PaymentMethods = Mapper.Map<List<PaymentMethodViewModel>>(method)
     };
     return View(model);
 }
Ejemplo n.º 2
0
        public ActionResult Index()
        {
            var method = paymentMethodService.FindAll().ToList();
            var model  = new PaymentMethodsViewModel
            {
                PaymentMethods = Mapper.Map <List <PaymentMethodViewModel> >(method)
            };

            return(View(model));
        }