public JsonResult GuardarContactos(List <dtoPersonas> Contactos) { bool _Result = new BALPersonas().UpdatePersona(Contactos).Item1; if (_Result) { try { EmailService Servicio = new EmailService(); foreach (dtoPersonas Persona in Contactos) { Servicio.sendMailPromocion("", Persona); } return(Json(new { Exito = _Result, Mensaje = ConstantesComunes.EXITOWEB_GENERIO })); } catch { return(Json(new { Exito = _Result, Mensaje = ConstantesComunes.ERROR_GENERICO })); } } else { return(Json(new { Exito = _Result, Mensaje = ConstantesComunes.ERROR_GENERICO })); } }
// GET: Invitaciones public ActionResult Index() { List <dtoPersonas> _resultado = new BALPersonas().GetPersonasDirectorio(); IList <Person> model = (IList <Person>)Session["ListadoContactos"]; model = model.Where(x => !_resultado.Select(d => d.NombreCompleto).Any(v => v == x.Names[0].DisplayName)).ToList(); return(View(model)); }