What I want to do is to sent data from a view to another (just a name)
I've tried using the ViewBag but it losts all the data in the postback. Find useful this example but: How to pass data from razor view to controller in mvc3?
The data that I'm trying to send is in the index of a list of Stores and I got a link that sends you to the View that contain the images /StoresImages.
I got in the Stores view and in StoreImages index the following inputs:
<input type="text" name="StoreName"/>
and in StoreImagesController:
public ActionResult SaveName(string StoreName, FormCollection Collection){}
This is exactly as is in the example above but I'm getting the following error: not all code paths return a value.
What I'm missing??