예제 #1
0
        public bool UpdateCorreo(Correo c)
        {
            Correo cor = this.Correos.Find(c.Id);

            cor.html = c.html;
            cor.header = c.header;
            cor.footer = c.footer;
            cor.invitacion_id = c.invitacion_id;
            try
            {
                this.SaveChanges();
                return true;
            }
            catch (Exception e)
            {
                return false;
            }
        }
예제 #2
0
 public bool SaveNewCorreo(Correo c)
 {
     this.Correos.Add(c);
     this.SaveChanges();
     return true;
 }