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);
}
}
}