修改BUG:Menus文件增加删除集合为空保护
This commit is contained in:
parent
c20af5f655
commit
f5b874a6cc
|
@ -18,6 +18,7 @@ namespace Bootstrap.DataAccess
|
||||||
/// <param name="value"></param>
|
/// <param name="value"></param>
|
||||||
public virtual bool Delete(IEnumerable<string> value)
|
public virtual bool Delete(IEnumerable<string> value)
|
||||||
{
|
{
|
||||||
|
if (!value.Any()) return true;
|
||||||
var ret = false;
|
var ret = false;
|
||||||
var db = DbManager.Create();
|
var db = DbManager.Create();
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in New Issue