Files
ayanova7/source/ri/ri/Controllers/HomeController.cs
2018-06-29 19:47:36 +00:00

56 lines
1.4 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using GZTW.AyaNova.BLL;
using ri.util;
namespace ri.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
DashBoardInfoRI di = DashBoardInfoRI.Get(ay.lt("Common.Label.More"));
return View(di);
}
public ActionResult Settings()
{
return View();
}
public ActionResult Contact()
{
ViewBag.Message = "Your contact page.";
return View();
}
[AllowAnonymous]
public ActionResult Error()
{
object o = ay.getCacheData("exmsg");
string exmsg = "Unknown internal error";
if (o != null)
exmsg = o.ToString();
ViewBag.Message = exmsg;
return View();
}
public ActionResult NotFound(string req)
{
ViewBag.Message = "NotFound";
ViewBag.req = req;
return View();
}
public JsonResult AyKeepSessionAlive()
{
var result = new JsonResult { Data = "ok" };
return this.Json(result, JsonRequestBehavior.AllowGet);
}
//eoc
}
}