From 2399f124c8af347dea80c071c98a26129a643d1d Mon Sep 17 00:00:00 2001 From: tangxu <tangxu76880903> Date: 星期三, 07 八月 2024 13:26:06 +0800 Subject: [PATCH] 添加开始水库水位 --- WebApi/Controllers/HomeController.cs | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/WebApi/Controllers/HomeController.cs b/WebApi/Controllers/HomeController.cs new file mode 100644 index 0000000..fd79d38 --- /dev/null +++ b/WebApi/Controllers/HomeController.cs @@ -0,0 +1,36 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Mvc; + +namespace IStation.WebApi.Controllers +{ + public class HomeController : Controller + { + /// <summary> + /// + /// </summary> + /// <returns></returns> + public ActionResult Index() + { + //var isUseSwagger = System.Configuration.ConfigurationManager.AppSettings["IsUseSwagger"]; + //if (!string.IsNullOrEmpty(isUseSwagger) && !Convert.ToBoolean(isUseSwagger)) + //{ + // return View(); + //} + //else + { + return Redirect("/swagger/ui/index"); + } + + } + + public ActionResult Test() + { + ViewBag.Title = "Home Page"; + + return View(); + } + } +} -- Gitblit v1.9.3