Example #1
0
 public static void addProducts()
 {
     var _logging = new LoggingBLL();
     _logging.logToDatabase("Startet datacreator.");
     try
     {
         var products = new ProductBLL();
         if (products.getAllProducts().Count != 0)
             return;
         addProduct(createAfterDinnerBlend());
         addProduct(createAstorLibano());
         addProduct(createBrazillianBlend());
         addProduct(createCafedeParis());
         addProduct(createChocoVanilje());
         addProduct(createCostaRicanTarrazu());
         addProduct(createEtiopiskMokka());
         addProduct(createExecutiveBlend());
         addProduct(createIndianMysore());
         addProduct(createIrishCream());
         addProduct(createKoffeinfriEspresso());
         addProduct(createKoffeinfriKaffe());
         addProduct(createMayfairBlend());
         addProduct(createMexicanCoffee());
         addProduct(createNutCream());
         addProduct(createOldBrownJava());
         addProduct(createPrimeHonduras());
     }
     catch (Exception ex)
     {
         _logging.logToDatabase(ex);
     }
 }
 public ProductController()
 {
     _productBLL = new ProductBLL();
 }
 public AdminProductController(ProductBLL productBLL, LoggingBLL logginBLL)
 {
     _productBLL = productBLL;
     _loggingBLL = logginBLL;
 }
 public AdminProductController()
 {
     _productBLL = new ProductBLL();
     _loggingBLL = new LoggingBLL();
 }
Example #5
0
 public static void addProduct(ProductModel productModel)
 {
     var temp = new ProductBLL();
     temp.add(productModel);
 }