Esempio n. 1
0
        public IActionResult GetAll(string intervalo, int pg)
        {
            var service = new GenderService();

            try
            {
                var retorno = new RetornoPesquisa {
                    total = service.BuscarCount(intervalo),
                    itens = service.BuscarAll(intervalo, pg)
                };
                return(new ObjectResult(retorno));
            }
            catch (Exception) {
                return(NotFound());
            }
        }