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