public Collegue CreationCollegue(CreationColleguePostDTO creationColleguePostDTO) { var collegue = _mapper.Map <CreationColleguePostDTO, Collegue>(creationColleguePostDTO); collegue.Matricule = Guid.NewGuid(); _data.Add(collegue.Matricule.ToString(), collegue); return(collegue); }
public IActionResult CreerCollegue([FromBody] CreationColleguePostDTO creationColleguePostDTO) { return(Ok(_collegueService.CreationCollegue(creationColleguePostDTO))); }