using 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();
|
}
|
}
|
}
|