public IActionResult AddWeapon(string alienorship, string danger, string planet, string alien, string ship) { model = new WeaponModel(HttpContext.Session.GetString("dbusername"), HttpContext.Session.GetString("dbpassword")); if (alienorship == "alien") { model.AddWeapon("true", danger, planet, alien, null); } else { model.AddWeapon("false", danger, planet, null, ship); } return(RedirectToAction("Index")); }