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; } }
public bool SaveNewCorreo(Correo c) { this.Correos.Add(c); this.SaveChanges(); return true; }