mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-21 02:57:54 +08:00
正式解决EF更新问题
This commit is contained in:
@@ -49,7 +49,7 @@ namespace OpenAuth.Mvc.Controllers
|
||||
{
|
||||
try
|
||||
{
|
||||
_orgApp.AddOrg(org);
|
||||
_orgApp.AddOrUpdate(org);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -64,7 +64,7 @@ namespace OpenAuth.Mvc.Controllers
|
||||
try
|
||||
{
|
||||
var org = JsonHelper.Instance.Deserialize<Org>(json);
|
||||
_orgApp.ModifyOrg(org);
|
||||
_orgApp.AddOrUpdate(org);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
Reference in New Issue
Block a user