/// <summary> /// Gets the name of the status with the given ID. /// </summary> /// <param name="statusId">The ID of the status.</param> /// <returns>The name of the status</returns> protected static string GetApplicationStatusName(int?statusId) { if (statusId.HasValue) { return(ApplicationStatus.GetStatusName(statusId.Value)); } return(null); }