public IDictionary <string, string> GetRootMetadataTemp(GetRootMetaDataInput getRootMetaDataInput)
        {
            var itemDataModel = getRootMetaDataInput.ItemDataModel;
            var moduleId      = itemDataModel.Id;
            var moduleFree    = (SocialBusinessModel)itemDataModel.Data;

            var title = UrlHelper.NormalizeTextForUrl(moduleFree.Title);

            var routaDatas = new Dictionary <string, string>();

            routaDatas.Add("action", "Index");
            routaDatas.Add("controller", "Social");
            routaDatas.Add("title", title);
            routaDatas.Add("moduleId", moduleId.ToString(CultureInfo.InvariantCulture));

            return(routaDatas);
        }
Example #2
0
        public override IDictionary <string, string> GetRootMetadata(GetRootMetaDataInput getRootMetaDataInput)
        {
            var itemDataModel = getRootMetaDataInput.ItemDataModel;

            var moduleId = itemDataModel.Id;

            var title = UrlHelper.NormalizeTextForUrl(GetTitle(itemDataModel));

            var routaDatas = new Dictionary <string, string>();

            routaDatas.Add("action", "Index");
            routaDatas.Add("controller", ModuleName);
            routaDatas.Add("title", title);
            routaDatas.Add("moduleId", moduleId.ToString(CultureInfo.InvariantCulture));

            return(routaDatas);
        }
 public abstract IDictionary <string, string> GetRootMetadata(GetRootMetaDataInput getRootMetaDataInput);
Example #4
0
 public override IDictionary <string, string> GetRootMetadata(GetRootMetaDataInput getRootMetaDataInput)
 {
     return(new Dictionary <string, string>());
 }
Example #5
0
 public override IDictionary <string, string> GetRootMetadata(GetRootMetaDataInput getRootMetaDataInput)
 {
     throw new NotImplementedException();
 }