public void Update(PersonLotteryViewModel PersonLotteryViewModel) { var updateCommand = _mapper.Map <UpdatePersonLotteryCommand>(PersonLotteryViewModel); Bus.SendCommand(updateCommand); }
public void Register(PersonLotteryViewModel PersonLotteryViewModel) { var registerCommand = _mapper.Map <RegisterNewPersonLotteryCommand>(PersonLotteryViewModel); Bus.SendCommand(registerCommand); }