Build a TreeView component in ASP.NET MVC 5 using a self-referencing Entity Framework Code First category model and Razor HTML helpers to render nested lists.