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

18 lines
486 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();
default:
return new BypassQueryModifier();
}
}
}