/// <summary>
 /// Create the ViewModel from the Part.
 /// </summary>
 /// <param name="part">The SeoPart we start from.</param>
 /// <param name="seoServices">Dependency injection for services.</param>
 public SeoPartViewModel(SeoPart part, ISEOServices seoServices) : this(seoServices) {
     this.TitleOverride               = part.TitleOverride;
     this.CanonicalUrl                = part.CanonicalUrl;
     this.Keywords                    = part.Keywords;
     this.Description                 = part.Description;
     this.RobotsNoIndex               = part.RobotsNoIndex;
     this.RobotsNoFollow              = part.RobotsNoFollow;
     this.RobotsNoSnippet             = part.RobotsNoSnippet;
     this.RobotsNoOdp                 = part.RobotsNoOdp;
     this.RobotsNoArchive             = part.RobotsNoArchive;
     this.RobotsUnavailableAfter      = part.RobotsUnavailableAfter;
     this._robotsUnavailableAfterDate = _seoServices.DateToLocal(part.RobotsUnavailableAfterDate);
     //this.RobotsUnavailableAfterDate = seoServices.DateToLocal(part.RobotsUnavailableAfterDate).ToShortDateString();
     this.RobotsNoImageIndex        = part.RobotsNoImageIndex;
     this.GoogleNoSiteLinkSearchBox = part.GoogleNoSiteLinkSearchBox;
     this.GoogleNoTranslate         = part.GoogleNoTranslate;
     this.HideDetailMicrodata       = part.HideDetailMicrodata;
     this.HideAggregatedMicrodata   = part.HideAggregatedMicrodata;
     this.HasDetailMicrodata        = !string.IsNullOrWhiteSpace(part.Settings.GetModel <SeoPartSettings>().JsonLd);
     this.HasAggregatedMicrodata    = part.Settings.GetModel <SeoPartSettings>().ShowAggregatedMicrodata;
 }
 /// <summary>
 /// default empty constructor
 /// </summary>
 public SeoPartViewModel(ISEOServices seoServices)
 {
     _seoServices = seoServices;
 }
 public SeoDriver(IOrchardServices orchardServices, ISEOServices seoServices, IWorkContextAccessor workContextAccessor)
 {
     _orchardServices     = orchardServices;
     _seoServices         = seoServices;
     _workContextAccessor = workContextAccessor;
 }