public IActionResult AddWeaponConnection(string alienkey, string weaponkey) { model = new AlienModel(HttpContext.Session.GetString("dbusername"), HttpContext.Session.GetString("dbpassword")); model.ConnectWeapon(alienkey, weaponkey); return(RedirectToAction("ManageAlienConnections", new { @id = alienkey })); }