public Table_1 updatetable(int id, Table_1 table) { db.Entry(table).State = System.Data.Entity.EntityState.Modified; db.SaveChanges(); return(table); }