mirror of
https://github.com/rjNemo/ticket_manager
synced 2026-06-06 08:46:39 +00:00
28 lines
752 B
C#
28 lines
752 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace TicketManager.Models
|
|
{
|
|
// public interface ITask
|
|
public abstract class ITask
|
|
{
|
|
int Id { get; set; }
|
|
string Title { get; set; }
|
|
string Description { get; set; }
|
|
DateTime CreatedAt { get; }
|
|
DateTime PlannedEnding { get; set; }
|
|
List<History> Edits { get; set; }
|
|
|
|
public virtual void AddLogEntry(string description)//, User user)
|
|
{
|
|
History Edit = new History()
|
|
{
|
|
Description = description,
|
|
ActivityType = ActivityType.Undefined,
|
|
// User = user,
|
|
UpdateDate = DateTime.Now
|
|
};
|
|
Edits.Add(Edit);
|
|
}
|
|
}
|
|
}
|