@page "/" @using AyCode.Interfaces.StorageHandlers; @using BlazorAnimation @using TIAMSharedUI.Shared.Components.BaseComponents @using TIAMWebApp.Shared.Application.Interfaces @using TIAMWebApp.Shared.Application.Models.ClientSide.UI @using AyCode.Services.Loggers @using TIAMSharedUI.Pages.Components; @using TIAMSharedUI.Shared @using TIAM.Resources; @using TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels @inherits BasePageComponent @inject NavigationManager NavManager @inject IUserDataService UserDataService; @inject IJSRuntime jsRuntime; @inject ISecureStorageHandler SecureStorageHandler @inject ISessionService sessionService; @inject IStringLocalizer localizer; @inject NavigationManager navManager @inject IAcLogWriterClientBase BrowserConsoleLogWriter @inject IWizardProcessor WizardProcessor Index @*
*@

@localizer.GetString("Index.Title")

@localizer.GetString("Index.Subtitle")

Card image

@localizer.GetString("Index.Transfer")

@localizer.GetString("Index.Transfer.Desc")

Card image

@localizer.GetString("Index.Tours")

@localizer.GetString("Index.Tours.Desc")

Card image

@localizer.GetString("Index.Clubcards")

@localizer.GetString("Index.Clubcards.Desc")

@code { public List sliders = new List { new HeroSliderItem { Title = "Welcome to TIAM", ImageUrl = "https://images.unsplash.com/photo-1551867633-194f125bddfa?auto=format&fit=crop&q=80&w=2070&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" }, new HeroSliderItem { Title = "Welcome to TIAM", ImageUrl = "https://images.unsplash.com/photo-1549877452-9c387954fbc2?auto=format&fit=crop&q=80&w=2070&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" }, new HeroSliderItem { Title = "Welcome to TIAM", ImageUrl = "https://images.unsplash.com/photo-1507622560124-621e26755fb8?auto=format&fit=crop&q=80&w=2070&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" } }; public TransferWizardModel myModel = new TransferWizardModel(); public List TransferIgnorList = new List { "Id", "UserId", "ProductId", "PaymentId", "FirstName", "LastName", "UserProductMappingId", "UserProductToCarId", "ReferralId", "Price", "Revenue" }; /*protected override void OnAfterRender(bool isFirst) { message = " Target destination is " + slider.SliderElementId.ToString(); }*/ public async Task SubmitForm(object Result) { TransferWizardModel transferWizardModel = Result as TransferWizardModel; if(sessionService.IsAuthenticated) { transferWizardModel.UserId = sessionService.User.UserModelDto.Id; transferWizardModel.ProductId = sessionService.User.UserModelDto.Products.FirstOrDefault().Id; } transferWizardModel.Price = null; var transfer = await WizardProcessor.ProcessWizardAsync(transferWizardModel.GetType(), transferWizardModel); BrowserConsoleLogWriter.Info($"Submitted nested form: {Result.GetType().FullName}"); navManager.NavigateTo("/transfer2/" + transfer.Id); } }