コード例 #1
0
        public override CommandExecutionResult Execute()
        {
            try
            {
                Concert concert = new ConcertFactory().Create(
                    GeoTitle,
                    EngTitle,
                    Description,
                    ConcertDate
                    );

                _concertRepository.Store(concert);

                return(new CommandExecutionResult(CommandExecutionStatus.Success, concert.Id));
            }
            catch (Exception ex)
            {
                //log exception
                return(new CommandExecutionResult(ex.Message));
            }
        }