Esempio n. 1
0
        public IActionResult GetUserRecords(int id)
        {
            if (!IsMe(id))
            {
                return(Unauthorized());
            }

            var records = _resultsManager.GetUserRecords(id);

            if (records == null)
            {
                return(NotFound());
            }

            return(Json(records));
        }