public bool UpdateEstado(Estado c) { Estado est = this.Estados.Find(c.Id); est.nombre = c.nombre; try { this.SaveChanges(); return true; } catch (Exception e) { return false; } }
public bool SaveNewEstado(Estado c) { this.Estados.Add(c); this.SaveChanges(); return true; }