/// <summary> /// Notify user when a task was assigned. /// </summary> /// <param name="task"></param> private void NotifyAssignedUser(TaskItem task) { var html = $@"<span class=""actor"">@{task.CreatedBy().Username}</span> assigned you to the <span class=""subject"">task</span> {task.Name.Quote(true)}"; NotificationService.Insert(new Notification(task.AssignedTo.Value, html) { Link = task }); }