* Moved Privacy, Home page to Razor Pages * Migrating Basket from RazorPages to Web. * Removed BasketController; refactored viewmodels * Moved BasketComponent into Pages/Shared Added auth rules to Startup for Pages Added notes to controllers about Pages usage. * Fixed broken my orders test Consolidated Functional Tests * Fixed logo link to home page Fixed Order Detail Total $ format
20 lines
533 B
C#
20 lines
533 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
|
using System.Diagnostics;
|
|
|
|
namespace Microsoft.eShopWeb.Web.Pages
|
|
{
|
|
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
|
public class ErrorModel : PageModel
|
|
{
|
|
public string RequestId { get; set; }
|
|
|
|
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
|
|
|
|
public void OnGet()
|
|
{
|
|
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
|
|
}
|
|
}
|
|
}
|