2015-09-22 23:10:00 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Web;
|
|
|
|
|
using System.Web.Mvc;
|
2015-09-23 00:10:11 +08:00
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using OpenAuth.App;
|
2015-09-22 23:10:00 +08:00
|
|
|
|
|
|
|
|
|
namespace OpenAuth.Mvc.Controllers
|
|
|
|
|
{
|
|
|
|
|
public class HomeController : BaseController
|
|
|
|
|
{
|
2015-09-23 00:10:11 +08:00
|
|
|
|
private LoginApp _loginApp;
|
|
|
|
|
|
|
|
|
|
public HomeController()
|
|
|
|
|
{
|
|
|
|
|
_loginApp = (LoginApp)DependencyResolver.Current.GetService(typeof(LoginApp));
|
|
|
|
|
}
|
2015-09-22 23:10:00 +08:00
|
|
|
|
public ActionResult Index()
|
|
|
|
|
{
|
|
|
|
|
return View();
|
|
|
|
|
}
|
|
|
|
|
|
2015-10-26 21:58:12 +08:00
|
|
|
|
public ActionResult Main()
|
2015-10-23 23:19:11 +08:00
|
|
|
|
{
|
2015-10-26 21:58:12 +08:00
|
|
|
|
return View();
|
2015-10-23 23:19:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ActionResult Login()
|
|
|
|
|
{
|
|
|
|
|
return View();
|
|
|
|
|
}
|
|
|
|
|
|
2015-09-23 00:10:11 +08:00
|
|
|
|
public string LoadUsers()
|
|
|
|
|
{
|
|
|
|
|
return JsonConvert.SerializeObject(_loginApp.LoadUsers());
|
|
|
|
|
}
|
|
|
|
|
|
2015-09-22 23:10:00 +08:00
|
|
|
|
}
|
2015-09-20 21:59:36 +08:00
|
|
|
|
}
|