示例#1
0
        public IActionResult CreateChallengeInformation([Required][FromBody] ChallengeInformationCreation creation)
        {
            if (creation == null)
            {
                return(BadRequest());
            }

            _challengeCommand.SaveChallengeInformation(creation);
            return(Ok());
        }
示例#2
0
        public void SaveChallengeInformation(ChallengeInformationCreation challenge)
        {
            var mappedChallenge = _mapper.Map <Challenge>(challenge);

            _challengeRepository.CreateChallenge(mappedChallenge);
        }