예제 #1
0
 public void CreateCommand(Command cmd)
 {
     if (cmd == null)
     {
         throw new ArgumentNullException(nameof(cmd));
     }
     _context.Add <Command>(cmd);
 }
 public void CreateCommand(Command command)
 {
     if (command == null)
     {
         throw new ArgumentNullException(nameof(command));
     }
     context.Add(command);
 }
예제 #3
0
 public void CreateCommand(Command command)
 {
     _context.Add(command);
 }