public void Savetongs_entity(tongs_entity Data)
 {
     using (var dbContext = new ToolManageDbContext())
     {
         if (Data.ID > 0)
         {
             dbContext.Update <tongs_entity>(Data);
         }
         else
         {
             dbContext.Insert <tongs_entity>(Data);
         }
     }
 }
 public void SaveRepairTable(RepairTable Data)
 {
     using (var dbContext = new ToolManageDbContext())
     {
         if (Data.ID > 0)
         {
             dbContext.Update <RepairTable>(Data);
         }
         else
         {
             dbContext.Insert <RepairTable>(Data);
         }
     }
 }