[Invoke]
public Dictionary<string, string> GetRsOrderTypeIdsByNames(List<string> orderTypeNames)
{
ValidationManager.CheckUserValidation();
Dictionary<string, string> dicOrderTypeValues = new Dictionary<string, string>();
foreach (var orderTypeName in orderTypeNames)
{
if (!this.ObjectContext.RS_ORDER_TYPE.Any(p => p.ORDER_TYPE_NAME == orderTypeName)) continue;
string orderTypeId = this.ObjectContext.RS_ORDER_TYPE.Where(
p => p.ORDER_TYPE_NAME == orderTypeName).FirstOrDefault().ORDER_TYPE_ID.ToString();
dicOrderTypeValues.Add(orderTypeName, orderTypeId);
}
return dicOrderTypeValues;
}