I have a controller which I want it to return only two selected rows to a view. It looks like this:
public ActionResult Details(int sourceId, int targetId)
{
ConfigurationItem sourceItem = db.ConfigurationItemSet.Find(sourceId);
ConfigurationItem targetItem = db.ConfigurationItemSet.Find(targetId);
return View();
}
What should I put in a "return"? I want to make a view with only two specific rows selected by Id from the table and put it in two separate grids.