public async Task <IActionResult> GetAsync(string key) { var entity = await _service.GetPersonByKeyAsync(key); if (entity != null) { return(Ok(entity)); } return(NotFound()); }