File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ public void CreateCommand(Command cmd)
14
14
throw new NotImplementedException ( ) ;
15
15
}
16
16
17
+ public void DeleteCommand ( Command cmd )
18
+ {
19
+ throw new NotImplementedException ( ) ;
20
+ }
21
+
17
22
public IEnumerable < Command > GetAllCommands ( )
18
23
{
19
24
var commands = new List < Command >
Original file line number Diff line number Diff line change @@ -25,6 +25,16 @@ public void CreateCommand(Command cmd)
25
25
context . Commands . Add ( cmd ) ;
26
26
}
27
27
28
+ public void DeleteCommand ( Command cmd )
29
+ {
30
+ if ( cmd == null )
31
+ {
32
+ throw new ArgumentNullException ( nameof ( cmd ) ) ;
33
+ }
34
+
35
+ context . Commands . Remove ( cmd ) ;
36
+ }
37
+
28
38
public IEnumerable < Command > GetAllCommands ( )
29
39
{
30
40
return context . Commands . ToList ( ) ;
You can’t perform that action at this time.
0 commit comments