public async Task OnGet() { Types = await _service.GetTypes(); Employers = await _service.GetEmployers(); GoogleMapsApiKey = _config["GoogleMapsApiKey"]; }
public async Task OnGet(int id) { Mission = await _service.GetMissionById(id); Types = await _service.GetTypes(Mission.MissionTypeId); Employers = await _service.GetEmployers(Mission.EmployerId); GoogleMapsApiKey = _config["GoogleMapsApiKey"]; }