diff --git a/Childrens-Social-Care-CPD/Contentful/Models/VideoResource.cs b/Childrens-Social-Care-CPD/Contentful/Models/VideoResource.cs index 08730572..706384c0 100644 --- a/Childrens-Social-Care-CPD/Contentful/Models/VideoResource.cs +++ b/Childrens-Social-Care-CPD/Contentful/Models/VideoResource.cs @@ -7,6 +7,5 @@ public class VideoResource : IContent public string Id { get; set; } public Asset Video { get; set; } public Document Transcript { get; set; } - public string EmbededTitle { get; set; } - public string EmbededSourceUrl { get; set; } + public string EmbeddedSourceUrl { get; set; } } diff --git a/Childrens-Social-Care-CPD/Views/Shared/_VideoResource.cshtml b/Childrens-Social-Care-CPD/Views/Shared/_VideoResource.cshtml index 0f964bfb..17dd51b7 100644 --- a/Childrens-Social-Care-CPD/Views/Shared/_VideoResource.cshtml +++ b/Childrens-Social-Care-CPD/Views/Shared/_VideoResource.cshtml @@ -8,25 +8,19 @@
- @if(!string.IsNullOrEmpty(Model.EmbededTitle) && !string.IsNullOrEmpty(Model.EmbededSourceUrl)) + @if(!string.IsNullOrEmpty(Model.EmbeddedSourceUrl)) { -

- @Model.EmbededTitle -

- if (@Model.EmbededSourceUrl.IndexOf("vimeo") > -1) + if (@Model.EmbeddedSourceUrl.IndexOf("vimeo") > -1) { } else { - + } } else