Update ViewUserControl.cs

This commit is contained in:
vairam-svs
2015-04-24 09:00:18 -07:00
parent 6932fdeac5
commit 0c2e655c7e

View File

@@ -67,24 +67,7 @@ namespace Orchard.Mvc {
}
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);
}