public IActionResult Get(string id) { var cliente = _clientesdb.GetById(id); if (cliente == null) { return(NotFound()); } return(Ok(cliente)); }
public IActionResult GetById(string id) { var task = _clienteDb.GetById(id); if (task == null) { return(NotFound()); } return(Ok(task)); }
public async Task <IActionResult> GetById(string id) { var cliente = await _clienteDb.GetById(id); if (cliente == null) { return(NotFound()); } return(Ok(cliente)); }