22 lines
512 B
C#
22 lines
512 B
C#
namespace RhSolutions.Api.Services;
|
|
|
|
public class ProductQueryModifierFactory
|
|
{
|
|
public IProductQueryModifier GetModifier(string productTypeName)
|
|
{
|
|
switch (productTypeName)
|
|
{
|
|
case "Монтажная гильза":
|
|
return new SleeveQueryModifier();
|
|
case "Тройник RAUTITAN":
|
|
return new TPieceQueryModifier();
|
|
case "Flex":
|
|
return new FlexPipeQueryModifier();
|
|
case "Stabil":
|
|
return new StabilPipeQueryModifier();
|
|
default:
|
|
return new BypassQueryModifier();
|
|
}
|
|
}
|
|
}
|