public async Task <IActionResult> GetAsync(string id) { if (id == null) { return(BadRequest()); } var result = await _service.GetAsync(id); if (result == null) { return(NotFound()); } return(Ok(result)); }