Example #1
0
 public static void Update(Product model)
 {
     try
     {
         DAL_Product.Update(model);
     }
     catch (Exception)
     {
         throw;
     }
 }
Example #2
0
 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);
 }