// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.AspNetCore.Mvc.Razor.Internal; using Microsoft.AspNetCore.Mvc.ViewFeatures; namespace Microsoft.AspNetCore.Mvc.Razor { /// /// Represents the properties and methods that are needed in order to render a view that uses Razor syntax. /// /// The type of the view data model. public abstract class RazorPage : RazorPage { /// /// Gets the Model property of the property. /// public TModel Model => ViewData == null ? default(TModel) : ViewData.Model; /// /// Gets or sets the dictionary for view data. /// [RazorInject] public ViewDataDictionary ViewData { get; set; } } }