Example #1
0
        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);
        }
Example #2
0
        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);
        }