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}."; }
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."; }