Beispiel #1
0
        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;
            }
        }
Beispiel #2
0
 public bool SaveNewEstado(Estado c)
 {
     this.Estados.Add(c);
     this.SaveChanges();
     return true;
 }