Added core pricing metafield and status check job

This commit is contained in:
2020-05-07 21:33:16 -04:00
parent ef5e4422c0
commit 9d3eac20dc
19 changed files with 341 additions and 119 deletions

View File

@@ -101,7 +101,7 @@ namespace PartSource.Services
string tag = $"{string.Join('-', years)} {make.Trim()} {model.Trim()}";
Console.WriteLine(tag);
System.Diagnostics.Debug.WriteLine(tag);
fitmentTags.Add(tag);
}
@@ -116,6 +116,11 @@ namespace PartSource.Services
public IList<VehicleData> GetVehiclesForPart(string partNumber, string lineCode)
{
if (string.IsNullOrEmpty(partNumber) || string.IsNullOrEmpty(lineCode))
{
return null;
}
partNumber = Regex.Replace(partNumber, "[^a-zA-Z0-9]", string.Empty);
IQueryable<string> whiCodes = _partSourceContext.DcfMappings