コード例 #1
0
ファイル: AlienController.cs プロジェクト: a18antsv/Alien.NET
 public IActionResult ManageAlienConnections(string id)
 {
     model                   = new AlienModel(HttpContext.Session.GetString("dbusername"), HttpContext.Session.GetString("dbpassword"));
     ViewBag.HasShips        = model.GetAlienHasShips(id);
     ViewBag.NotHasShips     = model.GetAlienNotHasShips(id);
     ViewBag.HasWeapons      = model.GetAlienHasWeapons(id);
     ViewBag.NotHasWeapons   = model.GetAlienNotHasWeapons(id);
     ViewBag.HasIncidents    = model.GetAlienHasIncidents(id);
     ViewBag.NotHasIncidents = model.GetAlienNotHasIncidents(id);
     ViewBag.Alienkey        = id;
     return(View());
 }