Exemple #1
0
 public void Register(Organization organization)
 {
     try
     {
         IStorageCommand command = new RegisterOrganizationCommand(organization);
         command.Execute(this);
     }
     catch (Exception ex)
     {
         throw new ServiceException(ex.Message);
     }
 }
Exemple #2
0
 public void Register([FromBody] RegisterOrganizationCommand command)
 {
     command.RegisteredBy = Guid.NewGuid().ToString();
     Mediator.Send(command);
 }