Beispiel #1
0
        public async Task OnGet()
        {
            _logger.LogInformation($"College Student Electrical positions page visited at {DateTime.UtcNow.ToLongTimeString()}");

            //Shoreside
            //All Engineering and Scientific Support EG
            foreach (var position in await _jobgroupService.GetJobPositionsByGroupId(6))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }

            //General Labor and Trades EIM-10
            foreach (var position in await _jobgroupService.GetJobGroupPositionsBySubGroupLevel(8, "EIM", "10"))
            {
                if (!position.Equals(null))
                {
                    ShoresidePositionIds += String.Format($"&PositionId={position.JobTitleId}");
                    ShoreSidePositions.Add(position);
                }
            }

            //Seagoing
            //Ship's Officer MAO-05 (electrical)
            SeagoingPositionIds = "&PositionId=123";
            SeagoingPositions   = await _jobpositionService.GetJobPositionByIdValues(SeagoingPositionIds);
        }
Beispiel #2
0
        public async Task OnGet(int id)
        {
            _logger.LogInformation($"Candidate Shoreside Similar positions list page visited at {DateTime.UtcNow.ToLongTimeString()}");
            JobGroup = await _jobgroupService.GetJobGroupById(id);

            Positions = await _jobgroupService.GetJobPositionsByGroupId(id);

            foreach (var position in Positions)
            {
                PositionIds += "&PositionId=" + position.JobTitleId.ToString();
            }
        }