Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Cristian Cubillos Torres
Prueba individuales
Commits
3861b7d6
Commit
3861b7d6
authored
Sep 13, 2024
by
Cristian Cubillos Torres
Browse files
Refactor XML serialization in Program.cs
parent
45b458c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
ConvertToDTE/Program.cs
View file @
3861b7d6
...
@@ -32,7 +32,7 @@ app.MapPost("/Dte", (SourceClass request, IMapper mapper) =>
...
@@ -32,7 +32,7 @@ app.MapPost("/Dte", (SourceClass request, IMapper mapper) =>
// Mapea el SourceClass a la entidad DTE
// Mapea el SourceClass a la entidad DTE
var
dte
=
mapper
.
Map
<
DTE
>(
request
);
var
dte
=
mapper
.
Map
<
DTE
>(
request
);
// Serializa el objeto DTE a XML
// Serializa el objeto DTE a XML
sdas
var
xmlContent
=
SerializeToXml
(
dte
);
var
xmlContent
=
SerializeToXml
(
dte
);
// Retorna el XML como respuesta
// Retorna el XML como respuesta
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment