In my mvc application, i'm having a controller where many actions are their.
I'm having a property for the controller class.
In index controller i'm setting the value for the property ,
will it able to get same value in another action..
public class HomeController : BaseController
{
int sample =0;
public ActionResult Index(int query)
{
this.sample = test;
}
public ActionResult Result()
{
this.sample -------- can this 'll give the value of wat i get in index action.
}
}