public ActionResult Delete(Adversarios adversario)
        {
            var adversarioDomain = Mapper.Map <Adversarios, ccn_adversarios>(adversario);

            _adversarioRepo.Excluir(adversarioDomain.Id);

            return(RedirectToAction("Index"));
        }
        public ActionResult Create(Adversarios adversario)
        {
            if (ModelState.IsValid)
            {
                var adversarioDomain = Mapper.Map <ccn_adversarios>(adversario);
                _adversarioRepo.Adicionar(adversarioDomain);

                return(RedirectToAction("Index"));
            }

            return(View(adversario));
        }
        public ActionResult Edit(Adversarios adversario)
        {
            if (ModelState.IsValid)
            {
                var adversarioDomain = Mapper.Map <Adversarios, ccn_adversarios>(adversario);
                _adversarioRepo.Editar(adversarioDomain);

                return(RedirectToAction("Index"));
            }
            else
            {
                return(View(adversario));
            }
        }