public async Task InitializeAsync(string applicationId) { var application = await ApplicationRepository.GetAsync(applicationId); if (application != null) { ApplicationId = applicationId; ApplicationName = application.Name; ApplicationBackground = BrushHelper.ColorToBrush(application.Background); ApplicationImageUrl = application.ImageUrl; } }
public async Task InitializeAsync(string applicationId, string marketId) { ApplicationId = _applicationId; MarketId = _marketId; MarketName = ResourceHelper.GetString(marketId, ResourcesFileEnum.CountriesResources); var application = await ApplicationRepository.GetAsync(applicationId); if (application != null) { ApplicationBackground = BrushHelper.ColorToBrush(application.Background); ApplicationImageUrl = application.ImageUrl; } }