Refactoring - split data, logic and model layers; custom network exception
This commit is contained in:
26
StudentHouseDashboard/Models/Event.cs
Normal file
26
StudentHouseDashboard/Models/Event.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Models
|
||||
{
|
||||
public class Event : GenericMessage
|
||||
{
|
||||
public Event(int id, User author, string description, string title, DateTime publishDate, DateTime startDate, DateTime endDate) : base(id, author, description, title, publishDate)
|
||||
{
|
||||
StartDate = startDate;
|
||||
EndDate = endDate;
|
||||
}
|
||||
|
||||
public DateTime StartDate
|
||||
{
|
||||
get;set;
|
||||
}
|
||||
|
||||
public DateTime EndDate
|
||||
{
|
||||
get;set;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user