46 lines
1.1 KiB
C#
46 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
|
|
namespace Chruch.Net.Controllers
|
|
{
|
|
public class HomeController : Controller
|
|
{
|
|
public ActionResult Index(string id)
|
|
{
|
|
|
|
if (HttpContext.Request.Url.AbsoluteUri.IndexOf("gls.") > 0 || HttpContext.Request.Url.AbsoluteUri.IndexOf("glsoc.") > 0)
|
|
{
|
|
if (id == "EN")
|
|
{
|
|
return View("/Views/Register2019/Index.cshtml");
|
|
|
|
}
|
|
else
|
|
{
|
|
return View("/Views/Register2019/IndexCn.cshtml");
|
|
|
|
}
|
|
|
|
}
|
|
//return RedirectToAction("Index", "NewVisitor");
|
|
return View();
|
|
}
|
|
|
|
public ActionResult About()
|
|
{
|
|
ViewBag.Message = "Your application description page.";
|
|
|
|
return View();
|
|
}
|
|
|
|
public ActionResult Contact()
|
|
{
|
|
ViewBag.Message = "Your contact page.";
|
|
|
|
return View();
|
|
}
|
|
}
|
|
} |