using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; using System.Threading.Tasks; using zero.Core.Api; using zero.Core.Entities; namespace zero.Debug.Controllers { public class TestController : Controller { IAppScope Api; ITranslationsApi CurrentApi; public TestController(IAppScope api, ITranslationsApi currentApi) { Api = api; CurrentApi = currentApi; } [HttpGet] public async Task Index() { IList global = await Api.Global.GetAll(); IList current = await CurrentApi.GetAll(); IList appTwo = await Api.App("applications.2-A").GetAll(); IList shared = await Api.Shared.GetAll(); return Json(new { current, global, appTwo, shared }); } } }