public string GetTestValue(int id) { var firstOrDefault = testRepository.AsQueryable().Where(x => x.Id == id).ToList().FirstOrDefault(); return(firstOrDefault != null ? firstOrDefault.Value : null); }