public IActionResult GetDetail([FromQuery] int id) { var human = humanService.GetHuman(id); string json = JsonConvert.SerializeObject(human); return(Content(json)); }
public async Task <Human> GetHuman(int humanId) { return(await _humanService.GetHuman(humanId)); }