正式解决EF更新问题

This commit is contained in:
yubaolee
2015-11-24 15:49:00 +08:00
parent 859300b331
commit ea76ebc35d
7 changed files with 141 additions and 151 deletions

View File

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