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

37 lines
886 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 EventCreateWithVenueModel
{
public int EventId { get; set; }
[Required]
public string EventTitle { get; set; }
public DateTime EventDate { get; set; }
public TimeSpan? EventDuration { get; set; }
[Required, MaxLength(3), MinLength(3)]
public string EventTypeId { get; set; }
public string VenueCode { get; set; }
public string VenueName { get; set; }
public string VenueDescription { get; set; }
public int VenueCapacity { get; set; }
public DateTime VenueDate { get; set; }
public double VenueCostPerHour { get; set; }
}
}