Click here to Skip to main content
15,899,124 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hiiiiiiiiiiii frnd....


i want to override method in controler class .....

C#
public ViewResult Details(int id,int catid)
        {
            Product product = db.Products.Single(p => p.ProductID == id && p.CategoryID== catid);
            return View();
        }
        // GET: /Product/Details/5
       
      
        public ViewResult Details(int id)
        {
            Product product = db.Products.Single(p => p.ProductID == id);
            return View(product);
        }


        public ViewResult Details(int id,string Productname)
        {
            Product product = db.Products.Single(p => p.ProductID == id && p.ProductName == Productname);
            return View(product);
        }


how to achieve this.....
pls help me.............
Posted
Updated 26-Sep-11 1:46am
v2

1 solution

Following link has the perfect solution you can eat up.

Your Answer
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900