public void Index() { ProductInput model = new ProductInput(); model.lstProduct = TblProduct.GetAllProduct(); //Checks for count of records Assert.AreNotEqual(model.lstProduct.Count, 0); }
public ActionResult Index() { try { ProductInput model = new ProductInput(); model.lstProduct = TblProduct.GetAllProduct(); return(View(model.lstProduct)); } catch (Exception) { throw new Exception(); } }