iotgateway/WalkingTec.Mvvm/WalkingTec.Mvvm.Mvc/_SetupController.cs
2021-12-14 14:10:44 +08:00

35 lines
909 B
C#

//using Microsoft.AspNetCore.Mvc;
//using System;
//using System.Collections.Generic;
//using System.Text;
//using WalkingTec.Mvvm.Core;
//namespace WalkingTec.Mvvm.Mvc
//{
// [DebugOnly]
// public class _SetupController : BaseController
// {
// public IActionResult Index()
// {
// var vm = Wtm.CreateVM<SetupVM>();
// vm.EntryDir = AppDomain.CurrentDomain.BaseDirectory;
// var rv = vm.GetIndex();
// return Content(rv, "text/html", Encoding.UTF8);
// }
// [HttpPost]
// public IActionResult Index(SetupVM vm)
// {
// vm.EntryDir = AppDomain.CurrentDomain.BaseDirectory;
// vm.DoSetup();
// string rv = $@"
//<html>
//<body>
// {Program._localizer["SetupSuccess"]}
//</body>
//</html>";
// return Content(rv, "text/html", Encoding.UTF8);
// }
// }
//}