private static string Entity2ItemAuthorFullName(this vw_USER_EventsLog entity) { if (entity.CourseId != null) { return(entity.Entity2CourseAuthorFullName()); } if (entity.BundleId != null) { return(entity.Entity2BundleAuthorFullName()); } return(string.Empty); }
private static string Entity2ItemPageUrl(this vw_USER_EventsLog entity) { if (entity.CourseId != null) { return(entity.GenerateCoursePageUrl(entity.Entity2CourseAuthorFullName(), entity.CourseName, entity.TrackingID)); } if (entity.BundleId != null) { return(entity.GenerateBundlePageUrl(entity.Entity2BundleAuthorFullName(), entity.BundleName, entity.TrackingID)); } return(string.Empty); }