public IActionResult Get(long id) { var citizen = _citizenService.GetById(id); if (citizen == null) { return(NotFound()); } return(Ok(citizen)); }
public async Task <ActionResult <Citizen> > GetById(long id) { return(Ok(await _citizenService.GetById(id))); }