public async Task <IActionResult> Stats() { try{ var stats = await _itemRepo.GetItemStatistics(); return(Ok(stats)); } catch (Exception ex) { return(StatusCode(StatusCodes.Status500InternalServerError, ex)); } }