public PersonView PersonAdd(PersonAddCommand personAddCommand)
 {
     try
     {
         return(_commandBus.Publish <PersonAddCommand, PersonView>(personAddCommand));
     }
     catch (Exception ex)
     {
         throw CreateFault(MethodBase.GetCurrentMethod(), ex,
                           int.Parse(Properties.Resources.EventLogAdresseRepositoryService));
     }
 }
Beispiel #2
0
 public void AddPerson(PersonAddCommand data)
 {
     _messages.Dispatch(data);
 }