I've been struggling for a while to find a sensible way of getting the footer. Well... This is where partial views come useful.
There are several ways to solve this problem. I've created a controller:
public class _OtherController : Controller
Models.DBEntities _db = new Models.DBEntities();
public ActionResult _Footer()
Footer viewModel = new Footer();
return PartialView("_FooterPartial", viewModel);
Shared folder I've added
_FooterPartial.cshtml and in the layout this line:
It worked so awesome.