WIP refactoring

This commit is contained in:
2022-10-08 09:54:30 +03:00
parent 67a3f885ce
commit 4ca234aec8
7 changed files with 77 additions and 14 deletions
+5 -5
View File
@@ -6,19 +6,19 @@ namespace PracticeCalendar.API.Model
public class EventModel
{
public int Id { get; set; }
public string Title { get; set; }
public string Description { get; set; }
public string Title { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public DateTime StartTime { get; set; }
public DateTime EndTime { get; set; }
public AttendeeModel[] Attendees { get; set; } = new AttendeeModel[0];
public AttendeeModel[] Attendees { get; set; } = Array.Empty<AttendeeModel>();
}
public class AttendeeModel
{
public string Name { get; set; }
public string EmailAddress { get; set; }
public string Name { get; set; } = string.Empty;
public string EmailAddress { get; set; } = string.Empty;
public bool IsAttending { get; set; }
}