Cześć jak mogę zmienić avatar użytkownika edytująć tylko jedne pole w bazie ?
Mam cos takiego ale wywala mi ten nieszcześny błąd „An entity object cannot be referenced by multiple instances of IEntityChangeTracker.”

[HttpGet]
public ActionResult ChangePhoto(string userId)
{
    PhotoViewModel vm = new PhotoViewModel
    {
        UserId = userId
    };
    return View(vm);
}
 
[HttpPost]
public ActionResult ChangePhoto(PhotoViewModel model, HttpPostedFileBase image1)
{
    if(image1!=null)
    {
        model.UserPhoto = new byte[image1.ContentLength];
        image1.InputStream.Read(model.UserPhoto,0,image1.ContentLength);
    }
 
    var user = UserManager.FindById(model.UserId);
    user.UserPhoto = model.UserPhoto;
 
    db.Entry(user).State = EntityState.Modified;
    db.SaveChanges();
    return RedirectToAction("Index");
}