Exemplo n.º 1
0
        public async Task <IActionResult> Stats()
        {
            try{
                var stats = await _itemRepo.GetItemStatistics();

                return(Ok(stats));
            }
            catch (Exception ex) {
                return(StatusCode(StatusCodes.Status500InternalServerError, ex));
            }
        }