summaryrefslogtreecommitdiff
path: root/RhSolutions.Api/Services/ProductQueryModifierFactory.cs
blob: a62a0c355f0a8b461e1edfcd977385fb171b1300 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
namespace RhSolutions.Api.Services;

public class ProductQueryModifierFactory
{
    public IProductQueryModifier GetModifier(string productTypeName)
    {
        switch (productTypeName)
        {
            case "Монтажная гильза":
                return new SleeveQueryModifier();
            case "Тройник RAUTITAN":
                return new TPieceQueryModifier();
            default:
                return new BypassQueryModifier();
        }
    }
}