private async void ApproveAll_Clicked(object sender, EventArgs e)
        {
            if (viewModel.TimeSheets == null || viewModel.TimeSheets.Count == 0)
            {
                Common.Instance.ShowToastMessage("No pending timesheets waiting for approval", DoubleResources.DangerSnackBar);
                return;
            }
            var resp = await DisplayActionSheet("Do you want to approve all time sheets?", "No", "Yes");

            if (resp != null && resp.ToString().Length > 0 && resp.Equals("Yes"))
            {
                bool isSussessfull = true;
                foreach (TimeSheetPeriod ts in viewModel.TimeSheets)
                {
                    ApiSaveResponse result = await TimeSheetService.ApproveAsync(ts.TimeSheetId.Value);

                    if (result.HasErrors)
                    {
                        isSussessfull = false;
                        foreach (var error in result.Errors)
                        {
                            Common.Instance.ShowToastMessage(error.ErrorMessage, DoubleResources.DangerSnackBar);
                        }
                    }
                }
                if (isSussessfull)
                {
                    Common.Instance.ShowToastMessage("All timesheets approved!", DoubleResources.SuccessSnackBar);
                }

                GetData();
            }
        }
        private async void OnApprove(object sender, EventArgs e)
        {
            viewModel.VisibleLoad = true;
            ApiSaveResponse result = await TimeSheetService.ApproveAsync(viewModel.CurrentPeriod.TimeSheetId.Value);

            if (result.HasErrors)
            {
                foreach (var error in result.Errors)
                {
                    Common.Instance.ShowToastMessage(error.ErrorMessage, DoubleResources.DangerSnackBar);
                }
            }
            else
            {
                Common.Instance.ShowToastMessage("Timesheet approved!", DoubleResources.SuccessSnackBar);
            }
            viewModel.VisibleLoad = false;
            MessagingCenter.Send(this, "TimeSheetApproved", true);
            await Navigation.PopToRootAsync();
        }