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
+19 -9
View File
@@ -2,6 +2,9 @@
namespace adas_core.Domain.Models.MongoModels;
/// <summary>
/// Represents a notice, typically used to convey information, alerts, or messages within the application.
/// </summary>
public class Notice
{
public ObjectId Id { get; set; }
@@ -13,18 +16,25 @@ public class Notice
public bool IsFooterEnabled { get; set; } = true;
/// <summary>
/// Returns a string representation of the notice, including the date (only when set), display ID, type, and description.
/// </summary>
/// <returns>A formatted string prefixed with "Notice [" and containing the comma-separated notice details, omitting the date entry when <c>NoticeDate</c> equals <see cref="System.DateTime.MinValue"/>.</returns>
public override string ToString()
{
List<string> items = [];
if (NoticeDate != DateTime.MinValue) items.Add($"Date: {NoticeDate}");
items.Add($"DisplayId : {DisplayId}");
items.Add($"Type: {NoticeType}");
items.Add($"Description: {Description}");
return "Notice [" + string.Join(",", items) + "]";
}
{
List<string> items = [];
if (NoticeDate != DateTime.MinValue) items.Add($"Date: {NoticeDate}");
items.Add($"DisplayId : {DisplayId}");
items.Add($"Type: {NoticeType}");
items.Add($"Description: {Description}");
return "Notice [" + string.Join(",", items) + "]";
}
}
/// <summary>
/// Represents a data structure that contains information about a staff member.
/// </summary>
public class StaffInfo
{
public required string Role { get; set; }