Refactored org create and update models

This commit is contained in:
2026-10-04 11:13:09 +02:00
parent d8a95f3f92
commit b3957f4af4
@@ -38,7 +38,7 @@ public sealed record UpdateOrganisationRequest([Required] long OrganisationId,
[Required][MaxLength(LabelLength)] string Name,
[Required][MaxLength(LabelLength)] string RegistrationNo,
[Required][EmailAddress][MaxLength(LabelLength)] string Email,
[Required][EmailAddress][MaxLength(LabelLength)] string IdNumber,
[Required][MaxLength(LabelLength)] string IdNumber,
[Required] Guid OrganisationUser,
[Required] OrganisationType Type,
[Required] ActivityStatus Status);
@@ -46,7 +46,7 @@ public sealed record UpdateOrganisationRequest([Required] long OrganisationId,
public sealed record CreateOrganisationRequest([Required][MaxLength(LabelLength)] string Name,
[Required][MaxLength(LabelLength)] string RegistrationNo,
[Required][EmailAddress][MaxLength(LabelLength)] string Email,
[Required][EmailAddress][MaxLength(LabelLength)] string IdNumber,
[Required][MaxLength(LabelLength)] string IdNumber,
[Required] Guid OrganisationUser,
[Required] OrganisationType Type = OrganisationType.PrivateLimitedCompany);