Castle.MonoRail.ActiveRecordScaffold.Helpers.PresentationHelper.LinkToConfirm C# (CSharp) Method

LinkToConfirm() public method

public LinkToConfirm ( ActiveRecordModel model, bool useModelName, String text, object key, IDictionary attributes ) : String
model Castle.ActiveRecord.Framework.Internal.ActiveRecordModel
useModelName bool
text String
key object
attributes IDictionary
return String
		public String LinkToConfirm(ActiveRecordModel model, bool useModelName, String text, object key, IDictionary attributes)
		{
			if (useModelName)
			{
				return String.Format("<a href=\"confirm{0}.{1}?id={4}\" {3}>{2}</a>", model.Type.Name, 
					Controller.Context.UrlInfo.Extension, text, GetAttributes(attributes), key);
			}
			else
			{
				return String.Format("<a href=\"confirm.{0}?id={3}\" {2}>{1}</a>", 
					Controller.Context.UrlInfo.Extension, text, GetAttributes(attributes), key);
			}
		}