修改BUG:Menus文件增加删除集合为空保护

This commit is contained in:
Argo-Surface 2019-01-17 13:25:15 +08:00
parent c20af5f655
commit f5b874a6cc
1 changed files with 1 additions and 0 deletions

View File

@ -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