Esempio n. 1
0
        public IActionResult Get(int id)
        {
            var result = dataProcessor.GetResult(DbContext, id);

            if (result == null)
            {
                return(NotFound(new { Error = $"Result ID = {id} has not been found" }));
            }

            return(new JsonResult(result, JsonSettings));
        }