public IActionResult ChangeTemplate([FromBody] string templatePathUrl) { var userId = System.Convert.ToInt32(User.FindFirstValue(ClaimTypes.NameIdentifier)); string templateName = _templateService.ChangeTemplate(templatePathUrl, _curriculumService.GetByUserId(userId)); if (templateName != null) { return(Ok(new { TemplateName = templateName, Message = "La plantilla " + templateName + " se ha aplicado." })); } else { return(BadRequest(new { Message = "No se ha podido cambiar la plantilla. Causa: ruta de plantilla incorrecta." })); } }