public static string Restore(SiteSettings ss, long wikiId) { var wikiModel = new WikiModel(); var invalid = WikiValidators.OnRestoring(); switch (invalid) { case Error.Types.None: break; default: return(invalid.MessageJson()); } var error = wikiModel.Restore(ss, wikiId); if (error.Has()) { return(error.MessageJson()); } else { var res = new WikisResponseCollection(wikiModel); return(res.ToJson()); } }