public async Task <bool> RefreshAsync()
        {
            bool isOk = true;

            Items        = null;
            ItemsCount   = 0;
            SelectedItem = null;

            try
            {
                VendorViewModel.ShowProgressRing();
                Items = await GetItemsAsync();
            }
            catch (Exception ex)
            {
                Items = new List <VendorModel>();
                StatusError($"Error loading Vendors: {ex.Message}");
                LogException("Vendors", "Refresh", ex);
                isOk = false;
            }
            finally {
                VendorViewModel.HideProgressRing();
            }
            ItemsCount = Items.Count;
            if (!IsMultipleSelection)
            {
                //  SelectedItem = Items.FirstOrDefault(); // Note : Avoid Auto selection
            }
            NotifyPropertyChanged(nameof(Title));

            return(isOk);
        }
 public VendorListViewModel(IVendorService vendorService, ICommonServices commonServices, VendorViewModel vendorViewModel) : base(commonServices)
 {
     VendorService   = vendorService;
     VendorViewModel = vendorViewModel;
 }
 public async void OnSelectedRow(VendorModel model)
 {
     await VendorViewModel.PopulateDetails(model);
 }