Ejemplo n.º 1
0
        public async Task <IActionResult> GetAll()
        {
            try
            {
                var items = await _ProductoService.GetAll();

                return(Ok(items));
            }
            catch (Exception ex)
            {
                return(StatusCode(500, ex));
            }
        }