web: založení projektu Helpdesk.Web a layout aplikace
ASP.NET Core MVC (.NET 10) s Bootstrapem 5, layout s menu podle role, chybové stránky, bezpečnostní hlavičky (CSP, Referrer-Policy) a česká kultura. Refs #19, #20
This commit is contained in:
1 parent
b402d9f92c
commit
abd075287c
25 files changed
+523
No files matched your search
@@ -0,0 +1,14 @@
|
||||
using Microsoft.AspNetCore.Mvc.ViewFeatures;
|
||||
|
||||
namespace Helpdesk.Web.Infrastructure;
|
||||
|
||||
/// <summary>Jednorázové zprávy přes přesměrování (vzor Post/Redirect/Get).</summary>
|
||||
public static class Flash
|
||||
{
|
||||
public const string Success = "Flash.Success";
|
||||
public const string Error = "Flash.Error";
|
||||
|
||||
public static void SetSuccess(this ITempDataDictionary tempData, string message) => tempData[Success] = message;
|
||||
|
||||
public static void SetError(this ITempDataDictionary tempData, string message) => tempData[Error] = message;
|
||||
}
|
||||
Reference in new issue
Block a user