public ActionResult Edit(PCViewModel pc) { ViewBag.UserId = pc.UserId; if (ModelState.IsValid) { _serv.UpdatePC(pc); return(RedirectToAction("Index", new { UserId = pc.UserId })); } return(View()); }