Exemplo n.º 1
0
        // GET: api/results/{id}/details
        public IHttpActionResult Get(int id)
        {
            var details = repository.GetResultDetails(id).Select(x => new TestResultDetailDTO(x));

            if (details == null)
            {
                return(NotFound());
            }
            return(Json(details));
        }