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(); }
public IEnumerable <ChitScheme> Get() { return(_schemeService.FindAll()); }