public IActionResult GetById(int id) { var register = _registerRepository.GetById(id); if (register == null) { return(NotFound()); } return(Ok(register)); }
public Person GetById(int id) { return(_registerRepository.GetById(id)); }