public VideoRequestDetailsForTalentVM(VideoRequest model) : base(model) { if (model == null) { return; } //video = new AttachmentDetailsVM(model.Video); video = AttachmentDetailsVM.ToVM(model.Video); }
public VideoDetailsVM(VideoRequest model) { if (model == null) { return; } request_id = model.ID; //video = new AttachmentDetailsVM(model.Video); video = AttachmentDetailsVM.ToVM(model.Video); to = model.To; from = model.From; talent = new TalentShortInfoForVideoPageVM(model.Talent); }
public PersonShortInfoVM(Person model) { if (model == null) { return; } this.id = model.ID; this.full_name = model.FullName; //this.FirstName = model.FirstName; //this.LastName = model.LastName; this.username = model.User?.UserName; this.bio = model.Bio; //this.avatar = new AttachmentDetailsVM(model.Avatar); this.avatar = AttachmentDetailsVM.ToVM(model.Avatar); }
public PersonEditVM(Person model) { if (model == null) { return; } this.id = model.ID; this.full_name = model.FullName; //this.FirstName = model.FirstName; //this.LastName = model.LastName; this.bio = model.Bio; //this.SocialAreaID = model.SocialAreaID; //this.SocialAreaHandle = model.SocialAreaHandle; //this.avatar = new AttachmentDetailsVM(model.Avatar); this.avatar = AttachmentDetailsVM.ToVM(model.Avatar); }
public TalentPersonalDataEditVM(Talent model) : base(model) { if (model == null) { return; } this.social_area_id = model.SocialAreaID; this.social_area_handle = model.SocialAreaHandle; this.followers_count = model.FollowersCount; this.intro_video = AttachmentDetailsVM.ToVM(model.IntroVideo); this.is_available = model.IsAvailable; this.price = model.Price; string numberFormat = AppData.Configuration.NumberViewStringFormat; this.price_str = model.Price.ToString(numberFormat).Trim(); }
public TalentShortInfoVM(Talent model) : base(model) { if (model == null) { return; } is_available = model.IsAvailable; price = model.Price; string numberFormat = AppData.Configuration.NumberViewStringFormat; price_str = model.Price.ToString(numberFormat).Trim(); intro_video = AttachmentDetailsVM.ToVM(model.IntroVideo); if (model.TalentCategories != null) { categories = model.TalentCategories .Select(m => new CategoryShortInfoVM(m.Category)) .ToList(); } }