From dc97e187c607119bbd2945b9a277db8da15f8dc0 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期三, 27 三月 2024 13:51:36 +0800 Subject: [PATCH] 重新优化接口调取数据 --- WebApi/Controllers/HomeController.cs | 21 ++++++++++----------- 1 files changed, 10 insertions(+), 11 deletions(-) diff --git a/WebApi/Controllers/HomeController.cs b/WebApi/Controllers/HomeController.cs index 245d60b..fd79d38 100644 --- a/WebApi/Controllers/HomeController.cs +++ b/WebApi/Controllers/HomeController.cs @@ -4,11 +4,8 @@ using System.Web; using System.Web.Mvc; -namespace SPump.TransferApi.Controllers +namespace IStation.WebApi.Controllers { - /// <summary> - /// - /// </summary> public class HomeController : Controller { /// <summary> @@ -20,17 +17,19 @@ //var isUseSwagger = System.Configuration.ConfigurationManager.AppSettings["IsUseSwagger"]; //if (!string.IsNullOrEmpty(isUseSwagger) && !Convert.ToBoolean(isUseSwagger)) //{ - return View(); + // return View(); //} - //return Redirect("/swagger/ui/index"); + //else + { + return Redirect("/swagger/ui/index"); + } + } - /// <summary> - /// - /// </summary> - /// <returns></returns> public ActionResult Test() - { + { + ViewBag.Title = "Home Page"; + return View(); } } -- Gitblit v1.9.3