Ohhhhh silly LINQ.

This commit is contained in:
Michael 2017-03-25 16:02:44 -04:00
parent 9f238cc47f
commit f9df48ff39

View file

@ -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);
}