Example #1
0
        // it will return one object and we just use Product model as type
        public ActionResult <ProductModel> ShowDetails(int Id)
        {
            ProductModel foundProduct = repository.GetProductByID(Id);

            return(foundProduct);
        }