优化代码

This commit is contained in:
不做码农
2022-05-30 09:27:19 +08:00
parent 2563624936
commit f5f0de7716
4 changed files with 8 additions and 29 deletions

View File

@@ -1,9 +1,4 @@
//using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Infrastructure.Extensions
{
@@ -20,7 +15,10 @@ namespace Infrastructure.Extensions
return true;
}
}
public static bool IsNotEmpty(this object value)
{
return !IsEmpty(value);
}
public static bool IsNullOrZero(this object value)
{
if (value == null || value.ParseToString().Trim() == "0")