コード例 #1
0
        public async Task <TeamDTO> Create(TeamDTO dto)
        {
            var result = await this.Handler.Execute(_log, async() =>
            {
                Team team = _teamFactory.CreateDomainObject(dto);
                team.Validate();

                team = await _teamRepository.Create(team);
                return(_teamMapper.ToDto(team));
            });

            return(result);
        }