public void Post([FromBody] ExampleCommand value)
        {
            value.Id = Guid.NewGuid().ToString();
            Aggregate exampleDomain = new ExampleAggregate();

            CommandHandler.ActivateCommand(value, exampleDomain);
        }
 public ActionResult Example([FromBody] ExampleCommand example)
 {
     try
     {
         //Commands inherit Id from their base class, this data is used to create the eventstream Id.
         //If that stream is derived from fields in the command or event other than a simple Id, this is the place to make assign it.
         Aggregate exampleAggreate = new ExampleAggregate();
         CommandHandler.ActivateCommand(example, exampleAggreate);
         return(Ok(example.Id));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message.ToString()));
     }
 }