Document_Manager #129
@ -26,12 +26,6 @@ namespace Marco.Pms.Services.Controllers
|
|||||||
/// <returns>An <see cref="IActionResult"/> indicating the success of the operation.</returns>
|
/// <returns>An <see cref="IActionResult"/> indicating the success of the operation.</returns>
|
||||||
public IActionResult MobileLogging([FromBody] List<LogStructure> logs)
|
public IActionResult MobileLogging([FromBody] List<LogStructure> logs)
|
||||||
{
|
{
|
||||||
var demoDetails = new
|
|
||||||
{
|
|
||||||
name = "Pooja",
|
|
||||||
job = "Tester",
|
|
||||||
org = "MarcoAiot"
|
|
||||||
};
|
|
||||||
// Check if logs are provided to avoid processing empty requests
|
// Check if logs are provided to avoid processing empty requests
|
||||||
if (logs == null || !logs.Any())
|
if (logs == null || !logs.Any())
|
||||||
{
|
{
|
||||||
@ -46,7 +40,6 @@ namespace Marco.Pms.Services.Controllers
|
|||||||
|
|
||||||
// Attempt to deserialize the 'Details' string into a dynamic object
|
// Attempt to deserialize the 'Details' string into a dynamic object
|
||||||
// This allows structured logging of the details payload.
|
// This allows structured logging of the details payload.
|
||||||
log.Details = JsonSerializer.Serialize(demoDetails);
|
|
||||||
if (!string.IsNullOrWhiteSpace(log.Details))
|
if (!string.IsNullOrWhiteSpace(log.Details))
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
Loading…
x
Reference in New Issue
Block a user