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

22 lines
512 B
C#
Raw Normal View History

2023-09-19 14:56:55 +03:00
namespace RhSolutions.Api.Services;
public class ProductQueryModifierFactory
{
2023-09-29 11:20:05 +03:00
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();
}
}
2023-09-19 14:56:55 +03:00
}