protected override DriverResult Editor(ProjectDashboardEditorPart part, ContentManagement.IUpdateModel updater, dynamic shapeHelper) { List<EditPortletViewModel> model = new List<EditPortletViewModel>(); updater.TryUpdateModel(model, "Portlets", null, null); var selectedPortlets = model.Where(c => c.IsChecked).OrderBy(c => c.Order).ToList(); part.PortletList = selectedPortlets.Select(c => c.PortletId).ToArray(); return null; }
protected override DriverResult Editor(TaskAssignment part, ContentManagement.IUpdateModel updater, dynamic shapeHelper) { updater.TryUpdateModel(part, Prefix, null, null); return(Editor(part, shapeHelper)); }