Esempio n. 1
0
        public bool UpdateInvitacion(Invitacion c)
        {
            Invitacion inv = this.Invitaciones.Find(c.Id);

            inv.apellido = c.apellido;
            inv.nombre = c.nombre;
            inv.mail = c.mail;
            inv.estado_id = c.estado_id;
            inv.evento_id = c.evento_id;
            try
            {
                this.SaveChanges();
                return true;
            }
            catch (Exception e)
            {
                return false;
            }
        }
Esempio n. 2
0
 public bool SaveNewInvitacion(Invitacion c)
 {
     this.Invitaciones.Add(c);
     this.SaveChanges();
     return true;
 }