Пример #1
0
        public Task <HttpResponseMessage> Get()
        {
            var clientes = _clienteApp.ObterTodos();

            if (clientes == null)
            {
                return(CreateResponse(HttpStatusCode.InternalServerError, clientes));
            }

            return(CreateResponse(HttpStatusCode.OK, clientes));
        }