コード例 #1
0
        public async Task <ContestDeleted> ExecuteAsync(
            ContestDelete contestDelete)
        {
            var contest =
                await _contestRepository.DeleteByIdAsync(
                    contestDelete.Id);

            var contestDeleted =
                _mapper.Map(contest, new ContestDeleted());

            return(contestDeleted);
        }