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