Exemple #1
0
 public ActionResult Create()
 {
     ViewBag.Adversarios = _adversarioRepo.ObterTodos();
     return(View());
 }
        public ActionResult Index()
        {
            var adversarioViewModel = Mapper.Map <IList <ccn_adversarios>, IList <Adversarios> >(_adversarioRepo.ObterTodos());

            return(View(adversarioViewModel));
        }