Add delete backtests by filters

This commit is contained in:
2025-10-15 00:28:25 +07:00
parent 48c2d20d70
commit b3f3bccd72
8 changed files with 326 additions and 1 deletions

View File

@@ -416,6 +416,19 @@ namespace Managing.Application.Backtests
}
}
public async Task<int> DeleteBacktestsByFiltersAsync(User user, BacktestsFilter filter)
{
try
{
return await _backtestRepository.DeleteBacktestsByFiltersAsync(user, filter);
}
catch (Exception ex)
{
_logger.LogError(ex, "Failed to delete backtests by filters for user {UserId}", user.Id);
throw;
}
}
public (IEnumerable<LightBacktest> Backtests, int TotalCount) GetBacktestsByUserPaginated(
User user,
int page,