I have face an error Error CS0246 The type or namespace name 'YouTubeDataModel' could not be found (are you missing a using directive or an assembly reference?)
using Cofoundry.Domain;
using Cofoundry.Plugins.YouTube.Domain;
using System.ComponentModel.DataAnnotations;
namespace PublisherFinder.Cofoundry.PageBlockTypes.ViemoVideo
{
public class YouTubeDataModel : IPageBlockTypeDataModel, IPageBlockTypeDisplayModel
{
[Required]
[YouTube]
public YouTubeVideo Video { get; set; }
}
}
I have make this class for YouTube Video and call this .cshtml file
@model YouTubeDataModel
@inject ICofoundryBlockTypeHelper<YouTubeDataModel> Cofoundry
Please help me