Update WebViewPage.cs

This commit is contained in:
vairam-svs
2015-04-24 09:01:55 -07:00
parent e72d4639db
commit 41d3e13a71

View File

@@ -127,24 +127,7 @@ namespace Orchard.Mvc.ViewEngines.Razor {
}
public void SetMeta(string name = null, string content = null, string httpEquiv = null, string charset = null) {
var metaEntry = new MetaEntry();
if (!String.IsNullOrEmpty(name)) {
metaEntry.Name = name;
}
if (!String.IsNullOrEmpty(content)) {
metaEntry.Content = content;
}
if (!String.IsNullOrEmpty(httpEquiv)) {
metaEntry.HttpEquiv = httpEquiv;
}
if (!String.IsNullOrEmpty(charset)) {
metaEntry.Charset = charset;
}
var metaEntry = new MetaEntry(name, content, httpEquiv, charset);
SetMeta(metaEntry);
}