public bool UpdateTheard(Theard entity) { var fi = db.Theards.Find(entity.TheardID); fi.TheardName = entity.TheardName; db.SaveChanges(); return(true); }
public bool InsertTheard(Theard entity) { db.Theards.Add(entity); db.SaveChanges(); return(true); }