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

            var tempRecords = ApprovalItems.OrderByDescending(c => c.stageentrydatetime_10).ToList();

            ApprovalItems.Clear();
            foreach (var item in tempRecords)
            {
                ApprovalItems.Add(item);
            }
            var approvalDateDown = ApprovalItems.FirstOrDefault();

            MessagingCenter.Send <object, ApprovalMainModel>(this, "ApprovalSortDateDown", approvalDateDown);
        }
        private async void clearSortingAsync()
        {
            await ClosePopup();

            var tempRecords = tempContainerList;

            ApprovalItems.Clear();
            foreach (var item in tempRecords)
            {
                ApprovalItems.Add(item);
            }
            var ClearApprovalSort = ApprovalItems.FirstOrDefault();

            MessagingCenter.Send <object, ApprovalMainModel>(this, "ClearApprovalSort", ClearApprovalSort);
        }
        public async void SortBorrowerUpCommandExecute()
        {
            await ClosePopup();

            var tempRecords = ApprovalItems.OrderBy(c => c.partyname_10).ToList();

            ApprovalItems.Clear();
            foreach (var item in tempRecords)
            {
                ApprovalItems.Add(item);
            }
            var approvalBorrowerUp = ApprovalItems.FirstOrDefault();

            MessagingCenter.Send <object, ApprovalMainModel>(this, "ApprovalSortBorrowerUp", approvalBorrowerUp);
        }
        public async Task GetApprovalData()
        {
            IsBusy          = true;
            App.buttonClick = 0;
            ActiveTabHandler();
            using (HttpClient hc = new HttpClient())
            {
                try
                {
                    var jsonString = await hc.GetStringAsync(Config.APPROVAL_URL + userId);

                    if (jsonString != null)
                    {
                        var obj = JsonConvert.DeserializeObject <List <ApprovalMainModel> >(jsonString);

                        if (obj.Count > 0)
                        {
                            IsDataNotAvailable    = false;
                            IsApprovalListVisible = true;

                            foreach (var user in obj)
                            {
                                ApprovalItems.Add(user);
                                tempContainerList.Add(user);
                            }
                        }
                        else
                        {
                            IsDataNotAvailable    = true;
                            IsApprovalListVisible = false;
                        }
                        GetApprovalSortByData();
                    }
                    else
                    {
                        IsDataNotAvailable    = true;
                        IsApprovalListVisible = false;
                    }
                }
                finally
                {
                    IsBusy = false;
                }
            }
        }