public IEnumerable <string> GetAllOperatroGroups(Line line)
 {
     db = SetDbContext(line);
     return(db.AccOperatorGroups.Select(g => g.GroupName));
 }
 public IList <AccOperator> GetOperatorsByLine(Line line)
 {
     db = SetDbContext(line);
     return(db.AccOperators.Where(o => o.Line == line.LineName).OrderBy(o => o.Operatorid).ToList());
 }