public IEnumerable <Student> Get(int id) { BasicServiceClient basicServiceClient = new BasicServiceClient(); Dictionary <string, string> student = basicServiceClient.GetStudentByClassId(id); return(student.Select(s => new Student { Account = s.Key, Name = s.Value }).ToList()); }