public async Task <IActionResult> Task4() { HttpContext.Response.Cookies.Append(_currentPageCookieName, "4"); // Note from RexGex: for now, I'm just gonna put a blanket try-catch statement for this task, so the page will at least render. // #TODO: Remove the try-catch statement once the task is completed. try { // #TODO: Put an access code provided by the terminal's task 3 validator here var acccessCode = ""; // #TODO: Assign the perpetrator key in format of {userId}-{userFirstName}-{userLastName} here (without curly braces) var userKey = ""; var response = await _terminalService.RetrieveSuspectInfo(acccessCode, userKey); return(View(new Task4ViewModel { HiredDate = response.HiredDate, LastUserLocationLat = response.LastUserLocationLat, LastUserLocationLon = response.LastUserLocationLon, UserDepartmentCode = response.DepartmentCode, UserFirstName = response.FirstName, UserLastName = response.LastName, UserId = response.UserId, UserImageUrl = response.ImageUrl, UserJobTitle = response.JobTitle })); } catch { return(View()); } }