Example #1
0
 public Unit Handle(DeleteBlogCommand input)
 {
     _context.Remove <Blog, int>(input.Id);
     return(Unit.Value);
 }
Example #2
0
 public Unit Handle(DeletePostCommand input)
 {
     _context.Remove <Post, int>(input.Id);
     return(Unit.Value);
 }