示例#1
0
 public IActionResult AddShip(string seatnumber, string planetkey)
 {
     model = new ShipModel(HttpContext.Session.GetString("dbusername"), HttpContext.Session.GetString("dbpassword"));
     model.AddShip(seatnumber, planetkey);
     return(RedirectToAction("Index"));
 }