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