// 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)); }
// 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)); }