Y2S1-Web_Apps_and_Services/ThAmCo.Events/Models/ViewModels/Events/EventIndexModel.cs

33 lines
761 B
C#
Raw Normal View History

2020-06-07 21:36:12 +00:00
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; }
}
}