22 lines
717 B
C#
22 lines
717 B
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using System.Diagnostics;
|
|
using Microsoft.AspNet.Mvc;
|
|
|
|
namespace RazorWebSite
|
|
{
|
|
public class DirectivesController : Controller
|
|
{
|
|
public ViewResult ViewInheritsInjectAndUsingsFromViewStarts()
|
|
{
|
|
return View(new Person { Name = "Person1" });
|
|
}
|
|
|
|
public ViewResult ViewInheritsBasePageFromViewStarts()
|
|
{
|
|
return View("/views/directives/scoped/ViewInheritsBasePageFromViewStarts.cshtml",
|
|
new Person { Name = "Person2" });
|
|
}
|
|
}
|
|
} |