You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ModelDescriptionLink.cshtml 944B

1234567891011121314151617181920212223242526
  1. @using Authentication_test.Areas.HelpPage.ModelDescriptions
  2. @model Type
  3. @{
  4. ModelDescription modelDescription = ViewBag.modelDescription;
  5. if (modelDescription is ComplexTypeModelDescription || modelDescription is EnumTypeModelDescription)
  6. {
  7. if (Model == typeof(Object))
  8. {
  9. @:Object
  10. }
  11. else
  12. {
  13. @Html.ActionLink(modelDescription.Name, "ResourceModel", "Help", new { modelName = modelDescription.Name }, null)
  14. }
  15. }
  16. else if (modelDescription is CollectionModelDescription)
  17. {
  18. var collectionDescription = modelDescription as CollectionModelDescription;
  19. var elementDescription = collectionDescription.ElementDescription;
  20. @:Collection of @Html.DisplayFor(m => elementDescription.ModelType, "ModelDescriptionLink", new { modelDescription = elementDescription })
  21. }
  22. else
  23. {
  24. @Html.DisplayFor(m => modelDescription)
  25. }
  26. }