public async Task <ScriptVariables> GetScriptVariables() { // Get all lines var lines = await _lineRepository.GetAll(); // Response var response = ScriptVariablesBuilder.BuildScriptVariables(lines); // Return return(response); }
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); }