mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-20 00:16:37 +08:00
更新控制器
This commit is contained in:
@@ -13,17 +13,7 @@ namespace Yi.Framework.Service
|
||||
{
|
||||
public RoleService(DbContext Db):base(Db)
|
||||
{
|
||||
}
|
||||
|
||||
public async Task<bool> AddRole(role _role)
|
||||
{
|
||||
var role_data = await GetEntityById(_role.id);
|
||||
if(role_data==null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return await AddAsync(_role);
|
||||
}
|
||||
}
|
||||
|
||||
public async Task<bool> DelListByUpdateAsync(List<int> _ids)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user