示例#1
0
 public IActionResult ManageWeapon(string id)
 {
     model           = new WeaponModel(HttpContext.Session.GetString("dbusername"), HttpContext.Session.GetString("dbpassword"));
     ViewBag.Weapon  = model.GetWeapon(id);
     ViewBag.Dangers = model.GetDangers();
     ViewBag.Planets = model.GetPlanets();
     return(View());
 }