优化代码结构,完成分类处理

This commit is contained in:
yubaolee
2015-12-16 22:52:23 +08:00
parent f79e5c08fa
commit aab16e28aa
18 changed files with 223 additions and 142 deletions

View File

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