Y2S1-Web_Apps_and_Services/ThAmCo.Events/Models/ViewModels/Events/EventIndexModel.cs
2020-06-07 22:36:12 +01:00

33 lines
761 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using ThAmCo.Events.Data;
namespace ThAmCo.Events.Models.ViewModels.Events
{
public class EventIndexModel
{
public int Id { get; set; }
[Required]
public string Title { get; set; }
public DateTime Date { get; set; }
public TimeSpan? Duration { get; set; }
[Required, MaxLength(3), MinLength(3)]
public string TypeId { get; set; }
public List<GuestBooking> Bookings { get; set; }
public string VenueReference { get; set; }
public List<Staffing> Staffings { get; set; }
public bool FirstAid { get; set; }
}
}