I currently have a controller with a LINQ statement that i am passing data from to my view. I am trying to find a more efficient and better coding method to do this. My hom
IMHO, you should create a ViewModel an pass data using it.
Create a class
public class MyViewModel
{
public MeltFurnace1{get;set;}
}
In Action Method
public ActionResult Action()
{
MyViewModel vm = new MyViewModel();
vm.MeltFurnace1 = something;
return View("YourViewName", vm);
}
In View
@model MyViewModel
//You can access your property using
Model.MeltFurnace1