Beispiel #1
0
 public static CraneOperation GetByOpCode(CraneOperations op)
 {
     using (CraneDbContext context = new CraneDbContext())
     {
         return(context.CraneOperations.Single(s => s.OpCode == op));
     }
 }
Beispiel #2
0
 public static CraneOperation GetByOpCode(CraneOperations op)
 {
     return(GetAll().Single(s => s.OpCode == op));
 }