Benny Sutton is 4 hire - just click here

Update an AspNetUser field

Update an AspNetUser Identity User field

I've added a field called count to log how many downloads a user makes. This is how I update it...

             
            //update user download count
                        var manager = HttpContext.GetOwinContext().GetUserManager<ApplicationUserManager>();
                        var user = manager.FindById(User.Identity.GetUserId());
                        user.DownloadCount++;
                        manager.Update(user);
                        HttpContext.GetOwinContext().Get<ApplicationDbContext>().SaveChanges();