fix: check POST data for validity

feat: also introduces a template for search
This commit is contained in:
2025-05-18 15:35:50 +02:00
parent eb9fa8b9ca
commit d1117959cd
4 changed files with 62 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
using System.ComponentModel.DataAnnotations;
using WebApp.Entities;
namespace WebApp.DTOs;
// Output values in JSON file
public record class EventSearchDto
(
int? OrganisationId,
string? Title,
string? Description,
string? Location,
DateTime? EventDate,
ICollection<EventSkill>? EventSkills, // obecnie nie dotyczy
ICollection<EventRegistration>? EventRegistrations // obecnie nie dotyczy
);