Ejemplo n.º 1
0
        public HttpResponseMessage GetTests()
        {
            var tests = _testDal.GetAllTests().Select(t => new { t.Id, t.Name, Difficulty = t.Difficulty.DifficultyLevel, NameLevel = t.Name + " - " + t.Difficulty.DifficultyLevel }).ToList();

            return(Request.CreateResponse(HttpStatusCode.OK, tests));
        }