21 lines
349 B
C#
21 lines
349 B
C#
|
#region
|
||
|
|
||
|
using System;
|
||
|
|
||
|
#endregion
|
||
|
|
||
|
namespace website.Models.events {
|
||
|
public class EditEventDate {
|
||
|
private string _date;
|
||
|
public int eventId { get; set; }
|
||
|
|
||
|
public string date {
|
||
|
get => _date;
|
||
|
set {
|
||
|
if (!Utilities.verifyDate(value))
|
||
|
throw new ArgumentException("Date in incorrect format or null");
|
||
|
_date = value;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|