mirror of
https://github.com/Queercon/QC14-Badge-Webview.git
synced 2025-08-20 13:23:36 -07:00
up to scratch
This commit is contained in:
parent
4a055b3812
commit
4c566c82f3
6 changed files with 41 additions and 113 deletions
|
@ -8,24 +8,20 @@ namespace qcbadge.Controllers
|
|||
{
|
||||
public class HomeController : Controller
|
||||
{
|
||||
public IActionResult Index()
|
||||
public IActionResult Index(string s)
|
||||
{
|
||||
return View();
|
||||
|
||||
|
||||
if ((String.Compare(Startup.scode, s, true) == 0))
|
||||
{
|
||||
ViewData["Message"] = "Code Good";
|
||||
return View();
|
||||
}
|
||||
else { return StatusCode(401); }
|
||||
|
||||
|
||||
}
|
||||
|
||||
public IActionResult About()
|
||||
{
|
||||
ViewData["Message"] = "Your application description page.";
|
||||
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult Contact()
|
||||
{
|
||||
ViewData["Message"] = "Your contact page.";
|
||||
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult Error()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue