public CustomersViewModel(ICustomerRepository customerRepository, UserMetaData userMetaData) { CustomerRepository = customerRepository; UserMetaData = userMetaData; Status = "Loading Customers"; IsLoading = true; CustomerRepository.LoadCustomersAsync(userMetaData.AuthToken, (customers, ex) => { IsLoading = false; if (ex == null) { Customers = customers; } else { Bxf.Shell.Instance.ShowError("Error loading Customers.", "Error"); } }); }
public LoginViewModel(ILoginRepository loginRepository, UserMetaData userMetaData) { LoginRepository = loginRepository; UserMetaData = userMetaData; }