/// <summary> /// Gets the ticket status for the user notifications. /// </summary> /// <param name="ticket">The current ticket information.</param> /// <returns>A status string.</returns> public static string GetUserTicketDisplayStatus(TicketEntity ticket) { if (ticket?.Status == (int)TicketState.Open) { return(ticket.IsAssigned() ? Strings.AssignedUserNotificationStatus : Strings.UnassignedUserNotificationStatus); } else { return(Strings.ClosedUserNotificationStatus); } }
/// <summary> /// Gets the current status of the ticket to display in the SME team. /// </summary> /// <param name="ticket">The current ticket information.</param> /// <returns>A status string.</returns> public static string GetTicketDisplayStatusForSme(TicketEntity ticket) { if (ticket?.Status == (int)TicketState.Open) { return(ticket.IsAssigned() ? string.Format(CultureInfo.InvariantCulture, Strings.SMETicketAssignedStatus, ticket?.AssignedToName) : Strings.SMETicketUnassignedStatus); } else { return(Strings.SMETicketClosedStatus); } }
/// <summary> /// Gets the current status of the ticket to display in the SME team. /// </summary> /// <param name="ticket">The current ticket information.</param> /// <returns>A status string.</returns> public static string GetTicketDisplayStatusForSme(TicketEntity ticket) { if (ticket.Status == (int)TicketState.Open) { return(ticket.IsAssigned() ? string.Format(Resource.SMETicketAssignedStatus, ticket.AssignedToName) : Resource.SMETicketUnassignedStatus); } else { return(Resource.SMETicketClosedStatus); } }