private object HowTo(dynamic arg) { List <ApiModel> apis = ViewHelper.GetApiGuides(); XModel Model = new XModel { Apis = apis, Title = "Deneme Title'ı", Version = $"{VersionInfo}" }; return(View["api", model : Model]); }
private object Index(dynamic parameters) { //string path = $@"{AssemblyDirectory}\NGIndex\index.html"; //StreamReader reader = new StreamReader(path); //string htmlContent = reader.ReadToEnd(); //reader.Close(); reader.Dispose(); //htmlContent = htmlContent.Replace("{PageLoadedDate}", DateTime.Now.ToString()); //htmlContent = htmlContent.Replace("{Year}", DateTime.Now.Year.ToString()); //htmlContent = htmlContent.Replace("{BulidNumber}", VersionInfo); //Gateway.Log($"Request GET->Index Page"); //return View[viewName: null, model: htmlContent]; XModel Model = new XModel { Title = "Deneme Title'ı", Version = $"{VersionInfo}", Bulid1 = "V1", Bulid2 = "V2", Bulid3 = "V3" }; return(View["master", model : Model]); }