Esempio n. 1
0
 public static void Update(User data)
 {
     DBController.SQLVoidCommand(
         $"UPDATE Users SET " +
         $"Name = '{data.Name}', " +
         $"AccessLevel = '{data.AccessLevel}' " +
         $"WHERE id = '{data.Id}'");
 }
 public static void Update(ProductData data)
 {
     DBController.SQLVoidCommand(
         $"UPDATE WareHouse SET " +
         $"Name = '{data.Name}', " +
         $"Price = '{data.Price}', " +
         $"Amount = '{data.Amount}', " +
         $"Units = '{data.Units}', " +
         $"ShortName = '{data.ShortName}' " +
         $"WHERE EAN13 = '{data.EAN13}'");
 }