public async Task OnLoadAsync(INavigationParameters parameters, int attempt = 0)
        {
            try
            {
                var data = await CreditService.GetAsync();

                Credits.Clear();

                foreach (var item in data.OrderBy(x => x.CreditType))
                {
                    Credits.Add(new Credit
                    {
                        Title        = item.Title,
                        CreditType   = (CreditType)item.CreditType,
                        Description  = item.Description,
                        Website      = item.Website,
                        IncludeTitle = item.IncludeTitle,
                        Logo         = ImageSource.FromStream(() => new MemoryStream(item.Logo))
                    });
                }
            }
            catch (Exception)
            {
                await ErrorRetryManager.HandleRetryAsync(this, parameters, attempt);
            }
        }
        public async Task <IActionResult> Index(Guid creditId)
        {
            CreditModel credit = await creditService.GetAsync(creditId);

            if (credit == null || string.IsNullOrEmpty(credit.CreditDescription))
            {
                return(NotFound());
            }
            return(View(credit));
        }