コード例 #1
0
        private async Task FindByEmail(string email)
        {
            Users = new BindingList <UserModel>();
            await _events.PublishOnUIThreadAsync(new LoadingOnEvent());

            try
            {
                var user = await _userEndpoint.FindUserByEmail(email);

                if (user != null)
                {
                    Users.Add(user);
                    ShowNoUserFound = false;
                }
                else
                {
                    ShowNoUserFound = true;
                }
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                await _events.PublishOnUIThreadAsync(new LoadingOffEvent());
            }
        }