public async Task <IActionResult> PersonViewInfo(int?id) { // ID is null? Throw a NotFound if (id == null) { return(NotFound()); } // Use async method to find the person with their id and use that var person = await _sql.GetAllPersonInfoByIDAsync(id); // Return the new view and pass the PersonModel with the person return(View("PersonViewInfo", new PersonModel() { Person = person })); }