public LinkToList ( |
||
model | ||
useModelName | bool | |
text | String | |
attributes | IDictionary | |
return | String |
public String LinkToList(ActiveRecordModel model, bool useModelName, String text, IDictionary attributes)
{
if (useModelName)
{
return String.Format("<a href=\"list{0}.{1}\" {3}>{2}</a>", model.Type.Name,
Controller.Context.UrlInfo.Extension, text, GetAttributes(attributes));
}
else
{
return String.Format("<a href=\"list.{0}\" {2}>{1}</a>",
Controller.Context.UrlInfo.Extension, text, GetAttributes(attributes));
}
}