/// <summary>
 /// Sets the Id path for the current entity being edited by the controller instance
 /// </summary>
 /// <param name="path"></param>
 public void GeneratePathsForCurrentEntity(EntityPathCollection path)
 {
     _currentPaths = path;
 }
 /// <summary>
 /// Sets the Id path for the current entity being edited by the controller instance
 /// </summary>
 /// <param name="path"></param>
 public void GeneratePathsForCurrentEntity(EntityPathCollection path)
 {
     _currentPaths = path;
 }
 /// <summary>
 /// Converts an entity path collection to a JSON object
 /// </summary>
 /// <param name="paths"></param>
 /// <returns></returns>
 public static JArray ToJson(this EntityPathCollection paths)
 {
     return(new JArray(paths.Select(x => new JArray(x.Select(y => y.ToJsonObject())))));
 }