public void FetchSchemesAsync()
        {
            if (_schemeService == null)
            {
                var Scope = Startup.Instance.provider.CreateScope();


                _schemeService = Scope.ServiceProvider.GetRequiredService <ISchemeService>();
            }
            Task task = new Task(
                () => Schemes = _schemeService.FindAll().ToList());

            task.Start();
        }
Esempio n. 2
0
 public IEnumerable <ChitScheme> Get()
 {
     return(_schemeService.FindAll());
 }