public static void Update(Product model) { try { DAL_Product.Update(model); } catch (Exception) { throw; } }
public void editItem(int id, DTO_Product info) { string[] value = { info.Category.Id.ToString(), info.Producer.Id.ToString(), info.Origin.Id.ToString(), info.Name, info.Amount.ToString(), info.Price.ToString(), info.WarrantyPeriod.ToString(), id.ToString() }; dataProduct.Update(value); }