public ActionResult RegistroDeOperadores(RegistroSegundoRepresentanteLegalVM Representante)
 {
     return(View(new RegistroDeOperadoresVM()
     {
         ContrasenaPersonaJuridica = Representante.ContrasenaPersonaJuridica,
         CorreoElectronicoPersonaJuridica = Representante.CorreoElectronicoPersonaJuridica,
         Documento = Representante.Documento,
         CorreoRep1 = Representante.CorreoRep1,
         CorreoRep2 = Representante.CorreoElect,
         IdentificacionRep1 = Representante.IdentificacionRep1,
         IdentificacionRep2 = Representante.Cedula,
         NombreRep1 = Representante.NombreRep1,
         NombreRep2 = Representante.NombreCompleto,
         TipoIdentificacionRep1 = Representante.TipoIdentificacionRep1,
         TipoIdentificacionRep2 = Representante.TipoSeleccionado
     }));
 }
 public ActionResult RegistrarSegundoRepresentante(RegistroSegundoRepresentanteLegalVM RepresentanteLegal)
 {
     if (ModelState.IsValid)
     {
         if (RepresentanteLegal.Cedula != RepresentanteLegal.IdentificacionRep1 && RepresentanteLegal.CorreoElect != RepresentanteLegal.CorreoRep1)
         {
             return(RedirectToAction("RegistroDeOperadores", "PersonaJuridica", RepresentanteLegal));
         }
     }
     RepresentanteLegal.Tipos = new[]
     {
         new SelectListItem {
             Value = "1", Text = "Nacional"
         },
         new SelectListItem {
             Value = "2", Text = "DIMEX"
         },
         new SelectListItem {
             Value = "3", Text = "Pasaporte"
         }
     };
     ViewBag.Error = "El representante dos no puede tener la misma cedula ni correo que el representante 1";
     return(View(RepresentanteLegal));
 }