sql helper and code for view selection start

This commit is contained in:
Jake Visser 2017-07-05 15:52:15 -07:00
commit 11f497adee
2 changed files with 43 additions and 2 deletions

View file

@ -8,7 +8,7 @@ namespace qcbadge.Controllers
{
public class HomeController : Controller
{
public IActionResult Index(string s)
public IActionResult Index(string s, string id)
{
if ((String.Compare(Startup.scode, s, true) == 0))
{
@ -17,11 +17,19 @@ namespace qcbadge.Controllers
ViewData["1"] = 1;
ViewData["38"] = 1;
if (String.IsNullOrEmpty(id))
{
}
else
{
}
return View();
}
else { return StatusCode(401); }
}