26 lines
653 B
C#
26 lines
653 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 "Муфта соединительная":
|
|
return new CouplingModifier();
|
|
case "Flex":
|
|
return new FlexPipeQueryModifier();
|
|
case "Stabil":
|
|
return new StabilPipeQueryModifier();
|
|
case "Black":
|
|
return new BlackPipeQueryModifier();
|
|
default:
|
|
return new BypassQueryModifier();
|
|
}
|
|
}
|
|
}
|