mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-09 02:44:44 +08:00
修复表单设计bug
This commit is contained in:
@@ -52,12 +52,13 @@ namespace OpenAuth.App
|
||||
public void SaveForm(string keyValue, WFFrmMain entity)
|
||||
{
|
||||
|
||||
if (string.IsNullOrEmpty(keyValue))
|
||||
{
|
||||
_unitWork.Add(entity);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (string.IsNullOrEmpty(keyValue))
|
||||
{
|
||||
_unitWork.Add(entity);
|
||||
}
|
||||
else
|
||||
{
|
||||
entity.Id = Guid.Parse(keyValue);
|
||||
_unitWork.Update(u =>u.Id, entity);
|
||||
}
|
||||
_unitWork.Save();
|
||||
|
||||
Reference in New Issue
Block a user