25 lines
534 B
C#
25 lines
534 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace ThAmCo.Events.Models
|
|
{
|
|
public class EventCreateModel
|
|
{
|
|
[Required]
|
|
public string Title { get; set; }
|
|
|
|
[Required]
|
|
public DateTime Date { get; set; }
|
|
|
|
public TimeSpan? Duration { get; set; }
|
|
|
|
[Required, MaxLength(3), MinLength(3)]
|
|
public string TypeId { get; set; }
|
|
|
|
public int VenueID { get; set; }
|
|
}
|
|
}
|