mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 18:47:55 +08:00
优化代码结构,完成分类处理
This commit is contained in:
@@ -38,6 +38,8 @@ namespace OpenAuth.App
|
||||
|
||||
public void AddOrUpdate(ModuleElement model)
|
||||
{
|
||||
var newbtn = new ModuleElement();
|
||||
model.CopyTo(newbtn);
|
||||
if (model.Id == 0)
|
||||
{
|
||||
_repository.Add(model);
|
||||
|
Reference in New Issue
Block a user