public void AddComment(string text, int taskID, int userID) { CommentRepository.AddItem(new Comment() { TaskID = taskID, Text = text, UserID = userID, TimeCreated = DateTime.Now }); }