public override int Create(MetaTag metaTag)
 {
     return(_procedures.InsertMetaTag(metaTag.Content,
                                      metaTag.Name.NullIfEmpty(),
                                      metaTag.HttpEquiv.NullIfEmpty(),
                                      BlogId,
                                      metaTag.EntryId,
                                      metaTag.DateCreated));
 }
        public override int Create(MetaTag metaTag)
        {
            if (metaTag == null)
            {
                throw new ArgumentNullException("metaTag");
            }

            if (!metaTag.IsValid)
            {
                throw new ArgumentException(metaTag.ValidationMessage);
            }
            if (metaTag.DateCreatedUtc.Kind != DateTimeKind.Utc)
            {
                throw new InvalidOperationException("Metadata Create date must be UTC");
            }
            metaTag.Id = _procedures.InsertMetaTag(metaTag.Content,
                                                   metaTag.Name.NullIfEmpty(),
                                                   metaTag.HttpEquiv.NullIfEmpty(),
                                                   BlogId,
                                                   metaTag.EntryId,
                                                   metaTag.DateCreatedUtc);
            return(metaTag.Id);
        }