Orlean (#32)
* Start building with orlean * Add missing file * Serialize grain state * Remove grain and proxies * update and add plan * Update a bit * Fix backtest grain * Fix backtest grain * Clean a bit
This commit is contained in:
@@ -302,5 +302,16 @@ namespace Managing.Application.Scenarios
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public async Task<Scenario> GetScenarioByNameAndUserAsync(string scenarioName, User user)
|
||||
{
|
||||
var scenario = await _tradingService.GetScenarioByNameAsync(scenarioName);
|
||||
if (scenario == null)
|
||||
{
|
||||
throw new InvalidOperationException($"Scenario {scenarioName} not found for user {user.Name}");
|
||||
}
|
||||
|
||||
return scenario;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user