20 lines
428 B
C#
20 lines
428 B
C#
using System;
|
|
using System.Text.RegularExpressions;
|
|
using Google.Protobuf.WellKnownTypes;
|
|
using MySql.Data.Types;
|
|
|
|
namespace website.Models.events {
|
|
|
|
public class EditEventTime {
|
|
private string _time;
|
|
public int eventId { get; set; }
|
|
public string? time {
|
|
get => _time;
|
|
set {
|
|
if (!Utilities.verifyTime(value))
|
|
throw new ArgumentException("Time is malformed or is null");
|
|
_time = value;
|
|
}
|
|
}
|
|
}
|
|
} |