20
Answers

I Can't get value from list while Editing in MVC

siva nathan

siva nathan

7y
411
1
name    email   
siva         [email protected]        Edit|Details|Delete
 
 
[HttpGet]
public ActionResult Edit(string name)
{
var model = new List<Registration>();
Registration reg = model.FirstOrDefault(emp => emp.Name == name);
if (reg == null)
return HttpNotFound();
return View(reg);
}
while im clicking Edit link i'm getting name=null
how can i get name from this 

Attachment: Screenshot_(10).rar

Answers (20)