예제 #1
0
        private async Task <bool> ProspectWasConverted(ProspectFollowup followup)
        {
            Prospect prospect = await _prospectsController.GetByIdAsync(followup.ProspectId);

            if (prospect == null)
            {
                return(true);
            }

            return(prospect.Converted);
        }
예제 #2
0
        private async Task <bool> ExitIfConverted()
        {
            Prospect prosp = await ProspectsController.GetByIdAsync(_originalProspect.SearchResult.Id);

            if (prosp == null || prosp.Converted)
            {
                RunOnUiThread
                (
                    () =>
                {
                    Toast.MakeText(this, Resource.String.already_converted, ToastLength.Long).Show();
                    Finish();
                }
                );
                return(true);
            }

            return(false);
        }