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

LinkToRemove() public method

public LinkToRemove ( 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 LinkToRemove(ActiveRecordModel model, bool useModelName, String text, object key, IDictionary attributes)
		{
			if (useModelName)
			{
				return String.Format("<a href=\"remove{0}.{1}?id={4}\" {3}>{2}</a>", model.Type.Name, 
					Controller.Context.UrlInfo.Extension, text, GetAttributes(attributes), key);
			}
			else
			{
				return String.Format("<a href=\"remove.{0}?id={3}\" {2}>{1}</a>", 
					Controller.Context.UrlInfo.Extension, text, GetAttributes(attributes), key);
			}
		}
	}