我有一个生成每个运算符列表的现有方法。我想修改它,只显示不在所谓的“非活动”的操作员。角色 - 此信息来自OperatorType表,列:Role
现有代码:
public static List<TPPROperatorDetails> GetOperators()
{
return DataHelper.DbTPPRTracer.TPPROperators.Select(
op => new TPPROperatorDetails{
Id = op.Id,
FullName = op.Name,
UserName = op.UserName,
Designation = op.Position,
OperatorTypes = ParseOperatorType(op.UserType),
SignatureImage = op.SignatureImage
}).ToList();
}