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 Activities { get; set; } public virtual void AddLogEntry(string description)//, User user) { Activity Activity = new Activity() { Description = description, ActivityType = ActivityType.Undefined, // User = user, UpdateDate = DateTime.Now }; Activities.Add(Activity); } } }