public ActionResult Denunciar(Denuncias denuncia)
        {
            denuncia.FechaCreacion = DateTime.Now;
            denuncia.IdUsuario     = SessionHelper.Usuario.IdUsuario;
            denuncia.Estado        = (int)DenunciaEstado.EnRevision;
            if (DenunciasService.Denuncie(denuncia.IdPropuesta))
            {
                ModelState.AddModelError("", "Ya existe una denuncia de esta persona para esta propuesta");
            }
            if (!ModelState.IsValid)
            {
                var motivos = MotivoDenunciaService.GetAll().Select(m => new SelectListItem
                {
                    Text  = m.Descripcion,
                    Value = m.IdMotivoDenuncia.ToString()
                }).ToList();
                motivos = motivos.Prepend(new SelectListItem
                {
                    Value    = "0",
                    Text     = "Seleccione un motivo",
                    Disabled = true,
                    Selected = true
                }).ToList();
                var viewModel = new DenunciaViewModel
                {
                    IdPropuesta     = denuncia.IdPropuesta,
                    MotivoDenuncia  = motivos,
                    NombrePropuesta = PropuestaService.GetById(denuncia.IdPropuesta).Nombre
                };
                return(View(viewModel));
            }

            DenunciasService.Crear(denuncia);
            PropuestaService.Instance.PonerPropuestaEnRevision(denuncia.IdPropuesta);
            return(RedirectToAction("Inicio", "Inicio"));
        }
        public ActionResult Denunciar(int id)
        {
            var motivos = MotivoDenunciaService.GetAll().Select(m => new SelectListItem
            {
                Text  = m.Descripcion,
                Value = m.IdMotivoDenuncia.ToString()
            }).ToList();

            motivos = motivos.Prepend(new SelectListItem
            {
                Value    = "0",
                Text     = "Seleccione un motivo",
                Disabled = true,
                Selected = true
            }).ToList();
            var viewModel = new DenunciaViewModel
            {
                IdPropuesta     = id,
                MotivoDenuncia  = motivos,
                NombrePropuesta = PropuestaService.GetById(id).Nombre
            };

            return(View(viewModel));
        }