Пример #1
0
        public virtual bool Equals(Participante obj)
        {
            if (obj == null) return false;

            if (Equals(IdViaje, obj.IdViaje) == false)
                return false;

            if (Equals(Nickname, obj.Nickname) == false)
                return false;

            if (Equals(Tipo, obj.Tipo) == false)
                return false;

            return true;
        }
Пример #2
0
 public ActionResult InvitarAmigoViaje(string nick, int idViaje)
 {
     IRepositorioParticipante<Participante> repoP = new ParticipanteRepositorio();
     Participante miParticipante = new Participante();
     miParticipante.IdViaje = idViaje;
     miParticipante.Nickname = nick;
     miParticipante.Tipo = "Participante";
     repoP.Save(miParticipante);
     return RedirectToAction("InvitarAmigos", "Persona", new { id = idViaje });
 }