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