db access tracking
This commit is contained in:
parent
65eebf6409
commit
bfc50d262d
63 changed files with 177 additions and 187 deletions
|
|
@ -102,7 +102,7 @@ namespace Yavsc.Controllers
|
|||
|
||||
try
|
||||
{
|
||||
_context.SaveChanges();
|
||||
_context.SaveChanges(User.GetUserId());
|
||||
}
|
||||
catch (DbUpdateConcurrencyException)
|
||||
{
|
||||
|
|
@ -136,7 +136,7 @@ namespace Yavsc.Controllers
|
|||
_context.Commands.Add(bookQuery);
|
||||
try
|
||||
{
|
||||
_context.SaveChanges();
|
||||
_context.SaveChanges(User.GetUserId());
|
||||
}
|
||||
catch (DbUpdateException)
|
||||
{
|
||||
|
|
@ -171,7 +171,7 @@ namespace Yavsc.Controllers
|
|||
if (bookQuery.ClientId != uid) return HttpNotFound();
|
||||
|
||||
_context.Commands.Remove(bookQuery);
|
||||
_context.SaveChanges();
|
||||
_context.SaveChanges(User.GetUserId());
|
||||
|
||||
return Ok(bookQuery);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue