public IActionResult CreateChallengeInformation([Required][FromBody] ChallengeInformationCreation creation) { if (creation == null) { return(BadRequest()); } _challengeCommand.SaveChallengeInformation(creation); return(Ok()); }
public void SaveChallengeInformation(ChallengeInformationCreation challenge) { var mappedChallenge = _mapper.Map <Challenge>(challenge); _challengeRepository.CreateChallenge(mappedChallenge); }