This post is an update to my original ASP.NET MVC Recursive TreeView Helper from almost 3 years ago. Oddly enough it’s still a high-traffic post and has close to 50 comments asking for an update or a complete solution to download. I figured if I was going to do that, I might as well give the API a much-needed facelift and pop it on NuGet. What is it? Given the following self-referencing hierarchal model… public class TreeViewLocation
{
public TreeViewLocation()
{
ChildLocations = new HashSet<TreeViewLocation>();
}
public int Id { get; set; }
public string Name { get; set; }
public virtual int? ParentLocationId { get; set; }
public virtual ICollection<TreeViewLocation> ChildLocations...