Esempio n. 1
0
        public IActionResult Get(string id)
        {
            var cliente = _clientesdb.GetById(id);

            if (cliente == null)
            {
                return(NotFound());
            }
            return(Ok(cliente));
        }
Esempio n. 2
0
        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));
        }