public IActionResult DeletePropertyConnection(string shipkey, string propertykey) { model = new ShipModel(HttpContext.Session.GetString("dbusername"), HttpContext.Session.GetString("dbpassword")); model.DisconnectProperty(shipkey, propertykey); return(RedirectToAction("ManageShipProperties", new { @id = shipkey })); }