public async void SortingCommandExecute()
        {
            await ClosePopup();

            DealSortByPopup DealSortByPopupview = new DealSortByPopup();

            DealSortByPopupview.BindingContext = this;
            SortBylblText  = Constants.SortBylblText;
            isSortingPopup = true;
            this.MessagesSortByData();
            await ShowPopup(DealSortByPopupview);

            //await ShowLoader();
            //IsLoadingInfiniteEnabled = true;
            //List<DealMessageList> tempRecords;

            //if (IsSortApplied = !IsSortApplied)
            //{
            //    SortingIcon = "Sort_Up.png";
            //    tempRecords = AllItems.OrderBy(c => c.lastPostDate).ToList();
            //}
            //else
            //{
            //    SortingIcon = "sort.png";
            //    tempRecords = AllItems.OrderByDescending(c => c.lastPostDate).ToList();
            //}

            //await ClosePopup();

            //OpenData = new ObservableCollection<DealMessageList>(tempRecords);
            //var firstMessage = OpenData.FirstOrDefault();
            //MessagingCenter.Send<object, DealMessageList>(this, "MessageSortApplied", firstMessage);
        }
        public async void SortingCommandExecute()
        {
            await ClosePopup();

            DealSortByPopup DealSortByPopupview = new DealSortByPopup();

            DealSortByPopupview.BindingContext = this;
            SortBylblText  = Constants.SortBylblText;
            isSortingPopup = true;
            this.MessagesSortByData();
            await ShowPopup(DealSortByPopupview);
        }
        public async void SortExecute()
        {
            try
            {
                await ClosePopup();

                DealSortByPopup DealSortByPopupview = new DealSortByPopup();
                DealSortByPopupview.BindingContext = this;
                SortBylblText = Constants.SortBylblText;
                await ShowPopup(DealSortByPopupview);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
        public async void FilterCommandExecute()
        {
            try
            {
                await ClosePopup();

                DealSortByPopup DealSortByPopupview = new DealSortByPopup();
                DealSortByPopupview.BindingContext = this;
                SortBylblText = Constants.FilterBylblText;
                isFilterPopup = true;
                this.GetMessageFilter();
                await ShowPopup(DealSortByPopupview);
            }
            catch (Exception ex)
            {
                Console.Write(ex.Message);
                ShowExceptionAlert(ex);
            }
        }
        private async Task SortingCommandExecuteAsync()
        {
            await ClosePopup();

            DealSortByPopup DealSortByPopupview = new DealSortByPopup();

            DealSortByPopupview.BindingContext = this;
            SortBylblText = Constants.SortBylblText;
            this.GetDealsSortByData();
            await ShowPopup(DealSortByPopupview);

            //if (IsSortingPopupVisible)
            //{
            //    IsSortingPopupVisible = false;
            //}
            //else
            //{
            //    IsSortingPopupVisible = true;
            //    IsFilterPopupVisible = false;
            //}
            //DeletePopup DealPopupview = new DeletePopup();
            //DealPopupview.BindingContext = this;
            //await ShowPopup(DealPopupview);
        }