Ejemplo n.º 1
0
        public async Task <IActionResult> Details(string id)
        {
            var walletContext = await _walletService.GetWalletAsync(_agentOptions.WalletConfiguration, _agentOptions.WalletCredentials);

            var model = new SchemaDetailViewModel
            {
                Schema = await _walletRecordService.GetAsync <SchemaRecord>(walletContext, id),
                AssociateCredDefinition = await _schemaService.ListCredentialDefinitionsAsync(walletContext)
            };

            return(View(model));
        }
Ejemplo n.º 2
0
        public SchemaDetailPage(Schema schema)
        {
            viewModel = new SchemaDetailViewModel(schema);
            try
            {
                this.Resources.Add(StyleSheet.FromAssemblyResource(IntrospectionExtensions.GetTypeInfo(typeof(SchemaDetailPage)).Assembly,
                                                                   "VaccineCalendar.Vaccine.css"));
            }
            catch (Exception ex)
            {
                throw;
            }

            //Content = ContentBuilder();
        }