private static Models.BreadCrumb GenerateBreadcrumb(string[] path) { if (path != null && path.Length > 0) { Models.BreadCrumb result = new Models.BreadCrumb(); result.parameters = new System.Collections.Generic.List <string>(); foreach (string s in path) { result.parameters.Add(s); } return(result); } else { return(null); } }
private static Models.BreadCrumb GenerateBreadcrumb(string[] path) { if (path != null && path.Length > 0) { Models.BreadCrumb result = new Models.BreadCrumb(); result.parameters = new System.Collections.Generic.List<string>(); foreach (string s in path) { result.parameters.Add(s); } return result; } else return null; }