private async Task<List<CardOperation>> SearchByAmountSpent() { Console.Write("Сумма не менее чем:"); var minToCompare = ConsoleExtensions.ReadDecimalOrRetry(); if (minToCompare > 0) { minToCompare = -minToCompare; } Console.Write("Сумма не более чем:"); var maxToCompare = ConsoleExtensions.ReadDecimalOrRetry(); if (maxToCompare > 0) { maxToCompare = -maxToCompare; } if (maxToCompare == 0) { maxToCompare = decimal.MinValue; } var operations = await _dbLogicManager.GetOperationsByAmountSpent(maxToCompare, minToCompare); // min and max switched cuz we're looking for spent operations return operations; }