movies
This commit is contained in:
10
Core/JXCMS.Core/Extensions/StringExtension.cs
Executable file
10
Core/JXCMS.Core/Extensions/StringExtension.cs
Executable file
@@ -0,0 +1,10 @@
|
||||
namespace JXCMS.Core.Extensions
|
||||
{
|
||||
public static class StringExtension
|
||||
{
|
||||
public static bool IsNullOrEmpty(this string str)
|
||||
{
|
||||
return string.IsNullOrEmpty(str);
|
||||
}
|
||||
}
|
||||
}
|
||||
10
Core/JXCMS.Core/Extensions/UrlExtensions.cs
Executable file
10
Core/JXCMS.Core/Extensions/UrlExtensions.cs
Executable file
@@ -0,0 +1,10 @@
|
||||
namespace Microsoft.AspNetCore.Mvc
|
||||
{
|
||||
public static class UrlExtensions
|
||||
{
|
||||
public static string ContentAdmin(this IUrlHelper url, string path)
|
||||
{
|
||||
return url.Content("~/Admin/Content/" + path);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user