public IActionResult AddNewProductToDB(string name, string description, decimal price, string collection, string productType,
                                        string ImgUrl)
 {
     if (productLogic.AddNewProduct(name, description, price, collection, productType,
                                    ImgUrl))
     {
         return(RedirectToAction("NewProductSuccesfull"));
     }
     else
     {
         return(RedirectToAction("NewProductFailed"));
     }
 }
Beispiel #2
0
 public void AddNewItemTest()
 {
     Assert.IsTrue(logic.AddNewProduct("TestProduct", "TestDesc", 12.8m, "Summer", "Shirt", "test"));
 }