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)); } }
public void AddPerson(PersonAddCommand data) { _messages.Dispatch(data); }