public static IPage GetRecycleBin(this IModelProvider modelProvider) { if (modelProvider == null) { throw new ArgumentNullException("modelProvider"); } return(modelProvider.GetPage(Const.RecycleBinPage)); }
public ExecutionResult RunPage(IModelProvider modelProvider, string pageIdentifier, string resultDataIdentifier) { var result = RunPage(modelProvider.GetPage(pageIdentifier).Content); /* * if (resultDataIdentifier != null) * { * storage.SetData(resultDataIdentifier, result.Serialize()); * } */ modelProvider.SetData(Const.GlobalPageResultGraphPrefix + pageIdentifier, result.Serialize()); if (result.Page != null) { modelProvider.SetData(Const.GlobalPageResultSimplePrefix + pageIdentifier, result.Page.ResultState.ToString()); } return(result); }