Events-MVC (example with htmx)
This commit is contained in:
16
Events-MVC/Events.MVC/Models/Sports/SportViewModel.cs
Normal file
16
Events-MVC/Events.MVC/Models/Sports/SportViewModel.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Sieve.Attributes;
|
||||
|
||||
namespace Events.MVC.Models.Sports;
|
||||
|
||||
public class SportViewModel
|
||||
{
|
||||
[Sieve(CanSort = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Display(Name = "Name")]
|
||||
[Required]
|
||||
[StringLength(100)]
|
||||
[Sieve(CanSort = true, CanFilter = true)]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user