0
0
RhSolutions-Api/RhSolutions.Api/Services/ProductQueryModifierFactory.cs

18 lines
486 B
C#
Raw Normal View History

2023-09-19 14:56:55 +03:00
namespace RhSolutions.Api.Services;
public class ProductQueryModifierFactory
{
public IProductQueryModifier GetModifier(string productTypeName)
{
switch (productTypeName)
{
2023-09-21 08:20:13 +03:00
case "Монтажная гильза":
return new SleeveQueryModifier();
2023-09-19 14:56:55 +03:00
case "Тройник RAUTITAN":
return new TPieceQueryModifier();
default:
return new BypassQueryModifier();
}
}
}