public NoteCommandHandler(
     IGenericCommandHandler genericCommandHandler,
     ICacheService cacheService,
     INoteMeMapper mapper,
     NoteMeContext noteMeContext)
 {
     _genericCommandHandler = genericCommandHandler;
     _cacheService          = cacheService;
     _mapper        = mapper;
     _noteMeContext = noteMeContext;
 }
 public AttachmentCommandHandler(IGenericCommandHandler genericCommandHandler)
 {
     _genericCommandHandler = genericCommandHandler;
 }
 private void DispatchGenericHandler <TCommand>(TCommand command, IGenericCommandHandler <TCommand> commandHandler)
     where TCommand : class
 {
     commandHandler.Handle(command);
 }