//private readonly IRepository<DnsDomain, Organization> _organizations; //TODO: this will be needed when IRepository is gone, passing something else //public OrgChildSelectDialog(HtmlHelper html, IRepository<DnsDomain, Organization> orgs) //{ // Html = html; // _organizations = orgs; //} public IHtmlString With(RoutedComputation <RenderOrgChildrenList> children, string chooseFunctionName, string dialogTitle) { throw new Lpp.Utilities.CodeToBeUpdatedException(); //return Html.Partial<Views.Organizations.OrgChildSelectDialog>().WithModel(new OrgChildrenSelectorModel //{ // Children = children, // Organizations = _organizations.All.Where(o => o.Parent == null), // ChooseFunctionName = chooseFunctionName, // DialogTitle = dialogTitle //}); }
public ActionResult Children(string id, RoutedComputation <LoadSubForest> cb) { return(cb.Compute()(id)); }