33 lines
741 B
C#
33 lines
741 B
C#
|
#region
|
||
|
|
||
|
using System;
|
||
|
|
||
|
#endregion
|
||
|
|
||
|
namespace website.Models.signups {
|
||
|
public class SignupCsv {
|
||
|
private string _firstName;
|
||
|
private string _lastName;
|
||
|
public int? signupId { get; set; }
|
||
|
public int? eventId { get; init; }
|
||
|
public DateTime date { get; set; }
|
||
|
public TimeSpan? time { get; set; }
|
||
|
public string? location { get; set; }
|
||
|
|
||
|
|
||
|
public string firstName {
|
||
|
get => _firstName;
|
||
|
set => _firstName = value.ToUpper().Trim();
|
||
|
}
|
||
|
|
||
|
public string lastName {
|
||
|
get => _lastName;
|
||
|
set => _lastName = value.ToUpper().Trim();
|
||
|
}
|
||
|
|
||
|
public override string ToString() {
|
||
|
return signupId + "," + eventId + "," + date.ToString("yyyy-MM-dd") + "," + time + "," + location + "," +
|
||
|
_firstName + "," + _lastName;
|
||
|
}
|
||
|
}
|
||
|
}
|