changes UserId to LiebUserId
This commit is contained in:
parent
7b44e41eb2
commit
31a0e20f1d
5 changed files with 9 additions and 9 deletions
|
@ -30,7 +30,7 @@ namespace Lieb.Pages.Users
|
||||||
return NotFound();
|
return NotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
User = await _context.Users.FirstOrDefaultAsync(m => m.UserId == id);
|
User = await _context.Users.FirstOrDefaultAsync(m => m.LiebUserId == id);
|
||||||
|
|
||||||
if (User == null)
|
if (User == null)
|
||||||
{
|
{
|
||||||
|
|
|
@ -32,6 +32,6 @@
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a asp-page="./Edit" asp-route-id="@Model.User.UserId">Edit</a> |
|
<a asp-page="./Edit" asp-route-id="@Model.User.LiebUserId">Edit</a> |
|
||||||
<a asp-page="./Index">Back to List</a>
|
<a asp-page="./Index">Back to List</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -29,7 +29,7 @@ namespace Lieb.Pages.Users
|
||||||
return NotFound();
|
return NotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
User = await _context.Users.FirstOrDefaultAsync(m => m.UserId == id);
|
User = await _context.Users.FirstOrDefaultAsync(m => m.LiebUserId == id);
|
||||||
|
|
||||||
if (User == null)
|
if (User == null)
|
||||||
{
|
{
|
||||||
|
|
|
@ -31,7 +31,7 @@ namespace Lieb.Pages.Users
|
||||||
return NotFound();
|
return NotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
User = await _context.Users.FirstOrDefaultAsync(m => m.UserId == id);
|
User = await _context.Users.FirstOrDefaultAsync(m => m.LiebUserId == id);
|
||||||
|
|
||||||
if (User == null)
|
if (User == null)
|
||||||
{
|
{
|
||||||
|
@ -57,7 +57,7 @@ namespace Lieb.Pages.Users
|
||||||
}
|
}
|
||||||
catch (DbUpdateConcurrencyException)
|
catch (DbUpdateConcurrencyException)
|
||||||
{
|
{
|
||||||
if (!UserExists(User.UserId))
|
if (!UserExists(User.LiebUserId))
|
||||||
{
|
{
|
||||||
return NotFound();
|
return NotFound();
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ namespace Lieb.Pages.Users
|
||||||
|
|
||||||
private bool UserExists(int id)
|
private bool UserExists(int id)
|
||||||
{
|
{
|
||||||
return _context.Users.Any(e => e.UserId == id);
|
return _context.Users.Any(e => e.LiebUserId == id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,9 +38,9 @@
|
||||||
@Html.DisplayFor(modelItem => item.Birthday)
|
@Html.DisplayFor(modelItem => item.Birthday)
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a asp-page="./Edit" asp-route-id="@item.UserId">Edit</a> |
|
<a asp-page="./Edit" asp-route-id="@item.LiebUserId">Edit</a> |
|
||||||
<a asp-page="./Details" asp-route-id="@item.UserId">Details</a> |
|
<a asp-page="./Details" asp-route-id="@item.LiebUserId">Details</a> |
|
||||||
<a asp-page="./Delete" asp-route-id="@item.UserId">Delete</a>
|
<a asp-page="./Delete" asp-route-id="@item.LiebUserId">Delete</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue