TFS_ANTIGUO/SInCathay/ULA.Cathay.Credito/Commons/CustomHelper.cs

25 lines
No EOL
799 B
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace ULA.Cathay.Credito.Commons
{
public class CustomHelper
{
#region IDENTIFICATION
public static MvcHtmlString Identification(string id, string etiqueta, bool Highlight, string size)
{
string text = File.ReadAllText(HttpContext.Current.Server.MapPath("~\\HtmlControls\\identification.html"));
text = text.Replace("[id]", id);
text = text.Replace("etiquetalbl", etiqueta);
if (!Highlight)
text = text.Replace("labelhighlight", string.Empty);
text = text.Replace("size", size);
return new MvcHtmlString(text);
}
#endregion
}
}