public async Task <ActionResult> Register() { RegisterViewModel model = new RegisterViewModel(); using (AuthServiceClient client = new AuthServiceClient()) { var res = await Task.Run(() => client.GetRegisInfo()); res.Provinces.ForEach(p => model.States.Add(new SelectListItem { Text = p.Name, Value = Convert.ToString(p.Id) })); } return(View(model)); }