delete workflow

This commit is contained in:
yubaolee
2016-10-27 16:55:38 +08:00
parent b1ee459c9e
commit c12466e8f3
4 changed files with 9 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
using System.Linq;
using System.Web.Mvc;
using Infrastructure;
using OpenAuth.App.ViewModel;
using OpenAuth.Domain;
@@ -28,10 +29,10 @@ namespace OpenAuth.App
return result;
}
public void Del(string code)
[HttpPost]
public void Del(string[] codes)
{
_repository.Delete(u =>u.Code == code);
_repository.Delete(u =>codes.Contains(u.Code));
}
}
}