示例#1
0
 public IActionResult ManageShip(string id)
 {
     model           = new ShipModel(HttpContext.Session.GetString("dbusername"), HttpContext.Session.GetString("dbpassword"));
     ViewBag.Ship    = model.GetShip(id);
     ViewBag.Planets = model.GetPlanets();
     return(View());
 }