public async Task <ActionResult> StationInfoSetSystemAsWaypoint(UniverseStationInfoPageViewModel model) { AuthDTO auth = GetAuth(_ESIClient); _Log.LogDebug(String.Format("Logged in to retrieve Character Info for Character Id: {0}", auth.CharacterId)); await _ESIClient.UserInterface.SetAutopilotWaypointV2Async(auth, model.SetDestination.AddToBeginning, model.SetDestination.ClearOtherWaypoints, model.SetDestination.DestinationId); return(RedirectToAction("StationInfo", new { id = model.SetDestination.DestinationId })); }
public async Task <ActionResult> StationInfoOpenInfoWindowForItemType(UniverseStationInfoPageViewModel model) { AuthDTO auth = GetAuth(_ESIClient); _Log.LogDebug(String.Format("Logged in to retrieve Character Info for Character Id: {0}", auth.CharacterId)); await _ESIClient.UserInterface.OpenInformationWindowV1Async(auth, model.OpenInfoModel.ItemTypeId); return(RedirectToAction("StationInfo", new { id = model.OpenInfoModel.SystemId })); }
public async Task <IActionResult> StationInfo(int id) { Station_V_Row station = _DBService.GetStation(id); var model = new UniverseStationInfoPageViewModel { Station = station, SetDestination = new UniverseSetDestinationModel(), OpenInfoModel = new UniverseSystemInfoItemTypeOpenInfoModel() }; return(View(model)); }