Exemplo n.º 1
0
        public IActionResult Get(int id)
        {
            var result = _query.Get(id);

            if (result == null)
            {
                return(NotFound());
            }

            return(Ok(result));
        }
Exemplo n.º 2
0
        public async Task <Response> GetBooks()
        {
            Response response = new Response();
            var      result   = await _repositoryQuery.Get();

            response.Data = result;
            return(response);
        }