MVC (layered variant)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
namespace MVC_SimpleCRUD_Layered.Application.Util.Extensions;
|
||||
|
||||
public static class StringExtensions
|
||||
{
|
||||
public static string? NullIfWhiteSpace(this string? value)
|
||||
{
|
||||
return string.IsNullOrWhiteSpace(value) ? null : value.Trim();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user