예제 #1
0
        public async Task <ScriptVariables> GetScriptVariables()
        {
            // Get all lines
            var lines = await _lineRepository.GetAll();

            // Response
            var response = ScriptVariablesBuilder.BuildScriptVariables(lines);

            // Return
            return(response);
        }
예제 #2
0
        public async Task <ScriptVariables> GetScriptVariables(GetScriptVariables query)
        {
            // Get all lines
            var lines = await _mainDbContext.Lines.Where(LineExpression.Filter(query.Period, query.CurrencyIds, query.UserIds, query.IndicatorIds)).ToListAsync();

            // Response
            var response = ScriptVariablesBuilder.BuildScriptVariables(lines);

            // Return
            return(response);
        }