rama creada apartir de master en j

This commit is contained in:
jrojas
2026-06-26 10:29:23 +02:00
parent 319fd3dfb0
commit c1517fda87
2810 changed files with 1927392 additions and 25392 deletions
+16 -8
View File
@@ -5,6 +5,9 @@ using Newtonsoft.Json;
namespace adas_core.Domain.Models;
/// <summary>
/// Represents a request payload for the administrative panel operations.
/// </summary>
public class AdmPanelRequest
{
public string? Type { get; set; }
@@ -61,15 +64,20 @@ public class AdmPanelRequest
public Dictionary<string, object>? SectionItems { get; set; }
/// <summary>
/// Returns a JSON representation of the current object using <see cref="JsonConvert.SerializeObject(object, Formatting)"/> with no formatting.
/// If serialization fails, falls back to the base <see cref="object.ToString"/> implementation.
/// </summary>
/// <returns>A JSON-serialized string of the object, or the result of <c>base.ToString()</c> if serialization throws an exception.</returns>
public override string? ToString()
{
try
{
return JsonConvert.SerializeObject(this, Formatting.None);
try
{
return JsonConvert.SerializeObject(this, Formatting.None);
}
catch
{
return base.ToString();
}
}
catch
{
return base.ToString();
}
}
}