mirror of
https://github.com/GCMatters/hermes.git
synced 2026-02-04 13:40:13 +01:00
fix: check POST data for validity
feat: also introduces a template for search
This commit is contained in:
16
WebApp/DTOs/EventSearchDto.cs
Normal file
16
WebApp/DTOs/EventSearchDto.cs
Normal 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
|
||||
);
|
||||
Reference in New Issue
Block a user