コード例 #1
0
ファイル: UserHelper.cs プロジェクト: BenOzore/BugTrackSystem
        public static void CreateTicketChangeNotification(string userId, int ticketId)
        {
            Developer user = (Developer)userManager.FindById(userId);
            var       ticketChangeNotification = new TicketNotificaiton();

            ticketChangeNotification.User   = user;
            ticketChangeNotification.UserId = userId;
            ticketChangeNotification.Body   = $"Created: {DateTime.Now.ToString()} - there was a change to ticket #{ticketId}.";
        }
コード例 #2
0
ファイル: UserHelper.cs プロジェクト: BenOzore/BugTrackSystem
        public static void CreateAssignedNotification(string userId)
        {
            Developer user = (Developer)userManager.FindById(userId);
            var       assignedNotification = new TicketNotificaiton();

            assignedNotification.User   = user;
            assignedNotification.UserId = userId;
            assignedNotification.Body   = $"Created: {DateTime.Now.ToString()} - {user.UserName} has been assigned a new ticket.";
        }