mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 07:38:33 -06:00
11 lines
340 B
C#
11 lines
340 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
public record CourseModule(
|
|
[property: Required]
|
|
[property: StringLength(50, ErrorMessage = "Name too long (50 character limit).")]
|
|
string Name,
|
|
IEnumerable<LocalAssignment>? Assignments
|
|
)
|
|
{
|
|
public IEnumerable<LocalAssignment> Assignments = Assignments ?? new LocalAssignment[] { };
|
|
} |