mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 08:23:12 +00:00
* Align EntityFrameworkCore.SqlServer and Tools to 8.0.8
* Add calendar/events backend API
Cherry-picked from main-backup (19994ef); scratch notes file removed.
* Require authentication on CalendarController
Security review found [Authorize] commented out, leaving all 6 calendar
endpoints anonymous. Enforce auth to match the API convention (17/23
controllers).
* Add CalendarController unit tests (xUnit + EF InMemory)
33 lines
993 B
C#
33 lines
993 B
C#
using System;
|
|
|
|
namespace Api.SeaHavenIndustries.DTOs
|
|
{
|
|
/// <summary>
|
|
/// DTO for GET responses - Event data
|
|
/// Used to return event information to the client
|
|
/// </summary>
|
|
public class Event_DTO
|
|
{
|
|
public int Id { get; set; }
|
|
public string Title { get; set; } = null!;
|
|
public string? Description { get; set; }
|
|
public string? Location { get; set; }
|
|
|
|
public int? RecordID { get; set; }
|
|
public string? RecordName { get; set; }
|
|
public string? RecordTargetType { get; set; }
|
|
|
|
public int ReminderMinutes { get; set; }
|
|
public string EventColor { get; set; } = null!;
|
|
|
|
public DateTime StartDate { get; set; }
|
|
public string? StartTime { get; set; }
|
|
public DateTime EndDate { get; set; }
|
|
public string? EndTime { get; set; }
|
|
public bool AllDay { get; set; }
|
|
|
|
public DateTime? CreatedDate { get; set; }
|
|
public string? createdby { get; set; }
|
|
}
|
|
}
|
|
|