예제 #1
0
        public ViewResult ProductDetails(int ID)
        {
            Product p = pRepo.GetProdByID(ID);


            return(View(p));
        }
예제 #2
0
        public ViewResult ProductDetails(int ID)
        {
            try
            {
                Product p = pRepo.GetProdByID(ID);


                return(View(p));
            }
            catch
            {
                return(View("Error"));
            }
        }