On the MVC MVC application page, I have a product page (Controller: ProductController, Action: Index) that lists all the products from the database. I now have a “Add Product” link that offers a form to fill out product information. When sending from AddProduct, an action is called that calls StoredProcedure (modeled in my model class). On successful upload, I use RedirectAction ("Index"). Now my StoredProcedure returns me a message indicating the retry of the addition. I need this message to be saved in ViewData and shown on the Index page. How can i do this? Any help would be greatly appreciated.
munna source
share