public SettingsViewModel(IPageService pageService, IRepository repository, IInitializeDatabase initializeDatabase) { this.pageService = pageService; this.repository = repository; this.initializeDatabase = initializeDatabase; ResetDatabaseCommand = new Command(async x => await ResetDatabase()); }
public ErrorModel(ILogger <ErrorModel> logger, IInitializeDatabase initializeDatabase) { _logger = logger; Message = initializeDatabase.Result; }