Ejemplo n.º 1
0
        public IActionResult CreateResult([FromBody] Result result)
        {
            if (!IsAdmin())
            {
                return(Unauthorized());
            }

            _resultsManager.AddResult(result);

            return(Json(result));
        }