public ActionResult List()
        {
            ServiceProduct        service = new ServiceProduct();
            List <CompanyProduct> model   = service.GetAllProducts();

            return(View(model));
        }
        public void TestGetAllProducts()
        {
            //Arrange and Act
            List <CompanyProduct> productList = testservice.GetAllProducts();

            //Assert
            Assert.IsTrue(productList.Count > 0);
        }
        public List <CompanyProduct> GetAllProducts()
        {
            ServiceProduct service = new ServiceProduct();

            return(service.GetAllProducts());
        }