public async Task <ActionResult> ManageCustomer(string returnUrl) { ViewBag.Message = "Lists the Customers"; List <RegisterCustomerViewModel> customerList = new List <RegisterCustomerViewModel>(); List <Customer> customers = await client.CustomerGetAll(); foreach (Customer cust in customers) { RegisterCustomerViewModel temp = new RegisterCustomerViewModel(); temp.Name = cust.Name; temp.Email = cust.Email; temp.AddressLine1 = cust.AddressLine1; temp.AddressLine2 = cust.AddressLine2; temp.PinCode = cust.PinCode; customerList.Add(temp); } return(View(customerList)); }