mirror of
https://github.com/Queercon/QC14-Badge-Webview.git
synced 2025-07-06 05:01:26 -07:00
31 lines
597 B
C#
31 lines
597 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace qcbadge.Controllers
|
|
{
|
|
public class HomeController : Controller
|
|
{
|
|
public IActionResult Index(string s)
|
|
{
|
|
|
|
|
|
if ((String.Compare(Startup.scode, s, true) == 0))
|
|
{
|
|
ViewData["Message"] = "Code Good";
|
|
return View();
|
|
}
|
|
else { return StatusCode(401); }
|
|
|
|
|
|
}
|
|
|
|
|
|
public IActionResult Error()
|
|
{
|
|
return View();
|
|
}
|
|
}
|
|
}
|