Esempio n. 1
0
        public bool UpdateTheard(Theard entity)
        {
            var fi = db.Theards.Find(entity.TheardID);

            fi.TheardName = entity.TheardName;
            db.SaveChanges();
            return(true);
        }
Esempio n. 2
0
 public bool InsertTheard(Theard entity)
 {
     db.Theards.Add(entity);
     db.SaveChanges();
     return(true);
 }