コード例 #1
0
 public static BaseEntityDTO CourseEditDto2BaseEntityDto(this CourseEditDTO token)
 {
     return(new BaseEntityDTO
     {
         id = token.CourseId
         , name = token.CourseName
     });
 }
コード例 #2
0
 public static WizardCourseMetaDTO CourseEditDto2CourseMetaDto(this CourseEditDTO token)
 {
     return(new WizardCourseMetaDTO
     {
         CourseId = token.CourseId
         , Uid = token.Uid
         , MetaTags = token.MetaTags
     });
 }
コード例 #3
0
 public static WizardCourseVisualsDTO CourseEditDto2CourseVisualsDto(this CourseEditDTO token)
 {
     return(new WizardCourseVisualsDTO
     {
         CourseId = token.CourseId
         , Uid = token.Uid
         , ThumbName = token.ThumbName
         , ThumbUrl = token.ThumbUrl
         , PromoVideoIdentifier = token.PromoVideoIdentifier
     });
 }
コード例 #4
0
 public static WizardCoursePricingDTO CourseEditDto2WizardCoursePricingDto(this CourseEditDTO token)
 {
     return(new WizardCoursePricingDTO
     {
         CourseId = token.CourseId
         , Uid = token.Uid
         , IsFree = token.IsFree
                    // ,Price                      = token.Price.ItemPrice2DisplayPrice()
                    // ,MonthlySubscriptionPrice   = token.MonthlySubscriptionPrice.ItemPrice2DisplayPrice()
         , AffiliateCommission = token.AffiliateCommission
     });
 }
コード例 #5
0
 public static WizardCoursePublishDTO CourseEditDto2WizardCoursePublishDto(this CourseEditDTO token, bool ready, List <PublishChecklistToken> list)
 {
     return(new WizardCoursePublishDTO
     {
         CourseId = token.CourseId
         , CourseName = token.CourseName
         , Uid = token.Uid
         , Status = token.Status
         , Ready2Publish = ready
         , IsCoursePurchased = token.IsCoursePurchased
         , Checklist = list
     });
 }
コード例 #6
0
 public static WizardCourseNameDTO CourseEditDto2CourseNameDto(this CourseEditDTO token)
 {
     return(new WizardCourseNameDTO
     {
         CourseId = token.CourseId
         , Uid = token.Uid
         , CourseName = String.IsNullOrEmpty(token.CourseName) || token.CourseName == token.Uid.ToString() ? string.Empty : token.CourseName
         , Description = token.Description
         , CourseDescription = token.CourseDescription
         , DisplayOtherLearnersTab = token.DisplayOtherLearnersTab
         , Categories = token.Categories
     });
 }