/**
  * Handle the command.
  *
  * @param  CreateMemberCommand $command
  * @return void
  */
 public function handle(CreateMemberCommand $command)
 {
     $member = $this->member->create($command->member);
     if ($member) {
         $this->dispatcher->fire(new MemberWasCreated($member->id, $member->firstname, $member->lastname));
     }
     return $member;
 }
 /**
  * Display a listing of the resource.
  *
  * @return CollectionResponse
  */
 public function index()
 {
     return (new CollectionResponse($this->member->all()))->asType('Member');
 }