initial commit

This commit is contained in:
2026-08-04 14:41:21 +03:00
parent 3cb8fcde60
commit 1a1d6186d8
101 changed files with 23239 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
using Microsoft.AspNetCore.Mvc.Rendering;
namespace Library;
public static class HtmlExtensions
{
public static string IsNull( this IHtmlHelper htmlHelper , object? attempt , string fallback )
{
return htmlHelper.Encode( attempt?.ToString( ) ?? fallback );
}
public static string IF( this IHtmlHelper htmlHelper , bool test , string value )
{
return htmlHelper.Encode( test ? value : "" );
}
public static string IIF( this IHtmlHelper htmlHelper , bool test , string value_1 , string value_2 )
{
return htmlHelper.Encode( test ? value_1 : value_2 );
}
};