private async void SearchServicesHistory()
        {
            dialogService.ShowProgress();
            RequestServicesHistory request = new RequestServicesHistory
            {
                DoctorName   = DoctorSelected != null && DoctorSelected.Code != "-1" ? DoctorSelected.Code : string.Empty,
                Document     = MinorSelected.Document,
                DocumentType = MinorSelected.DocumentType,
                EndDate      = EndDate.ToString("yyyyMMdd"),
                InitDate     = InitDate.ToString("yyyyMMdd"),
                City         = CitySelected != null && CitySelected.Code != "-1" ? CitySelected.Code : string.Empty,
                ServiceType  = ServiceSelected != null && ServiceSelected.Code != "-1" ? ServiceSelected.Code : string.Empty,
                Speciality   = SpecialitySelected != null && SpecialitySelected.Code != "-1" ? SpecialitySelected.Code : string.Empty
            };

            ResponseServicesHistory response = await apiService.GetServicesHistory(request);

            dialogService.HideProgress();
            ValidateResponseServicesHistory(response);
        }
        private async void SearchInvoices()
        {
            if (InitDate > EndDate)
            {
                await dialogService.ValidateDates();

                return;
            }

            dialogService.ShowProgress();
            RequestInvoices request = new RequestInvoices
            {
                Document        = loginViewModel.User.Document,
                DocumentType    = loginViewModel.User.DocumentType,
                EndDate         = EndDate.ToString("yyyyMMdd"),
                InitDate        = InitDate.ToString("yyyyMMdd"),
                IdStatusInvoice = StatusInvoiceSelected != null && StatusInvoiceSelected.Code != "-1" ? StatusInvoiceSelected.Code : string.Empty,
            };

            ResponseInvoices response = await apiService.GetInvoices(request);

            dialogService.HideProgress();
            ValidateResponseInvoices(response);
        }