コード例 #1
0
 /// <summary>
 /// Creates a new the product with the specified data
 /// </summary>
 public void CreateProduct(int categoryId, string modelNumber,
                           string modelName, string image, string description,
                           decimal unitCost)
 {
     try
     {
         ProductDALC productDALC = new ProductDALC();
         productDALC.CreateProduct(categoryId, modelNumber, modelName,
                                   image, description, unitCost);
     }
     catch (Exception e)
     {
         throw new ApplicationException(ResourceManager.GetString("RES_ExceptionCantCreateProduct"), e);
     }
 }