public ActionResult MyAccount() { var db = new ImageDb(Properties.Settings.Default.ConStr); var user = db.GetByEmail(User.Identity.Name); IEnumerable <Image> images = db.GetImagesForUser(user.Id); return(View(images)); }