更新控制器

This commit is contained in:
lzw
2021-10-13 23:08:42 +08:00
parent 86ab52df57
commit 1452979319
12 changed files with 227 additions and 40 deletions

View File

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