I am new in .net mvc, I am working on Visual Studio 2012. I just want to fetch data from database's table in controller and store this value into different variable. For example:
public class TestController
{
public ActionResult TestMethod()
{
var model = some LINQ code;
}
}
Now I just want to store this model
value into different variable such as string
, int
etc depend on the necessary.