private async Task initialDataAsync() { List <User> listUser = await userFirebaseHelper.GetAllUser(); if (listUser.Count == 0) { await userFirebaseHelper.AddUser("Order", "1", "", "Order"); await userFirebaseHelper.AddUser("Manager", "1", "", "Manager"); await userFirebaseHelper.AddUser("Admin", "1", "", "Admin"); } }
public async Task initAsync() { List <Models.User> listP = await firebaseHelper.GetAllUser(); listView.ItemsSource = listP; }
public async Task <List <Person> > GetAllUser() { return(await UserFirebaseHelper.GetAllUser()); }