mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-02-02 13:07:34 +00:00
Ohhhhh silly LINQ.
This commit is contained in:
parent
9f238cc47f
commit
f9df48ff39
1 changed files with 2 additions and 1 deletions
|
@ -77,7 +77,8 @@ namespace Project_Unite.Controllers
|
|||
|
||||
public ActionResult ListAvatars()
|
||||
{
|
||||
var avatars = new ApplicationDbContext().UserAvatars.Where(x => x.UserId == User.Identity.GetUserId());
|
||||
string id = User.Identity.GetUserId();
|
||||
var avatars = new ApplicationDbContext().UserAvatars.Where(x => x.UserId == id);
|
||||
return View(avatars);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue