Exemple #1
0
        public async Task <IActionResult> Get()
        {
            try
            {
                var lista = await _servicio.ObtenerTodosIndexAsync();

                return(Json(lista));
            }
            catch (Exception)
            {
                return(StatusCode(500, "The operation wasn't complete"));
            }
        }