diff --git a/qcbadge/Controllers/HomeController.cs b/qcbadge/Controllers/HomeController.cs index 729ca2c..9138b15 100644 --- a/qcbadge/Controllers/HomeController.cs +++ b/qcbadge/Controllers/HomeController.cs @@ -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); } - } diff --git a/qcbadge/Helpers/Sql.cs b/qcbadge/Helpers/Sql.cs new file mode 100644 index 0000000..f0f77cc --- /dev/null +++ b/qcbadge/Helpers/Sql.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Data.SqlClient; +using System.Text; + +namespace qcbadge.Helpers +{ + public class Sql + { + private static string DataSource = Startup.dburi; + private static string UserID = Startup.dbuser; + private static string Password = Startup.dbpass; + private static string db = Startup.dbname; + private static string table = "qcbdage"; + + public bool[] selectGlobalView() + { + bool[] rtn = new bool[50]; + + return rtn; + } + + public bool[] selectIndervidualView(int badgeid) + { + bool[] rtn = new bool[50]; + + return rtn; + } + + } +}