mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-10 23:42:36 -07:00
Rules changes and rework
This commit is contained in:
parent
d5ec429893
commit
9f4a8902f9
32 changed files with 2804 additions and 35 deletions
|
@ -6,6 +6,7 @@ using Ombi.Store.Entities;
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Security.Principal;
|
||||
using Ombi.Core.Models.Search;
|
||||
|
||||
namespace Ombi.Core.Engine.Interfaces
|
||||
{
|
||||
|
@ -57,10 +58,16 @@ namespace Ombi.Core.Engine.Interfaces
|
|||
}
|
||||
}
|
||||
|
||||
public IEnumerable<RuleResult> RunRules(BaseRequestModel model)
|
||||
public IEnumerable<RuleResult> RunRequestRules(BaseRequestModel model)
|
||||
{
|
||||
var ruleResults = Rules.StartRequestRules(model).ToList();
|
||||
return ruleResults;
|
||||
}
|
||||
|
||||
public IEnumerable<RuleResult> RunSearchRules(SearchViewModel model)
|
||||
{
|
||||
var ruleResults = Rules.StartSearchRules(model).ToList();
|
||||
return ruleResults;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue