public async Task <ActionResult <Person> > GetPerson(Guid id) { _logger.LogTrace("API Endpoint called | GET: /api/People/Guid "); var result = await _service.Find(id); if (result is null) { return(NotFound()); } return(result); }
public IActionResult PersonPartialId(int id) { return(PartialView("_PersonPartialId", _peopleService.Find(id))); }
public void NullAndBoolean() { // TIP: hover parameter hint for XML doc var peopleService = new PeopleService(); var people = peopleService.Find("Maarten", null, false); }