Events-MVC (example with htmx)

This commit is contained in:
Boris Milašinović
2026-04-25 22:21:35 +02:00
parent eb04483417
commit 0ee1b22f61
114 changed files with 7966 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
using System.ComponentModel.DataAnnotations;
using Sieve.Attributes;
namespace Events.MVC.Models.Events;
public class EventViewModel
{
[Display(Name = "ID")]
[Sieve(CanSort = true)]
public int Id { get; set; }
[Display(Name = "Name")]
[Required]
[StringLength(150)]
[Sieve(CanSort = true, CanFilter = true)]
public string Name { get; set; } = string.Empty;
[Display(Name = "Date")]
[DataType(DataType.Date)]
[Sieve(CanSort = true)]
public DateOnly EventDate { get; set; }
[Display(Name = "Participants")]
[Sieve(CanSort = true)]
public int ParticipantsCount { get; set; }
}