Add helper function

This commit is contained in:
Chomp 2022-01-12 15:04:42 +00:00
parent 97beccad46
commit 2d4af091aa

View File

@ -1,4 +1,5 @@
using AssortValidator.Common.Models; using AssortValidator.Common.Models;
using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace AssortValidator.Common.Helpers namespace AssortValidator.Common.Helpers
@ -40,5 +41,10 @@ namespace AssortValidator.Common.Helpers
return returnType; return returnType;
} }
public static string GetTraderIdByName(Trader key)
{
return _traders.GetValueOrDefault(key, string.Empty);
}
} }
} }