Exemple #1
0
        public async Task <IActionResult> Post(CVCreationRequestModel cv)
        {
            if (cv == null)
            {
                BadRequest();
            }

            var cvServiceModel = _mapper.Map <CVCreationRequestModel, CVCreationServiceModel>(cv);
            var createdCV      = await _cvService.AddAsync(cvServiceModel);

            CreatedResult result = new CreatedResult("CreatedCV", createdCV);

            return(result);
            //return CreatedAtRoute("GetCVSummary", new { id = createdCV.Id }, createdCV);
        }