In the implemntation of a Displayview in a MVC
application I am getting the NULL entry for Parameter error when I click on Edit option.
Used code for the controller is given below:
public ActionResult Edit(int ? id, ConferDetal cnfdr)
{
try
{
using (ConBitEtities btis = new ConBitEtities())
{
btis.Entry(cnfdr).State = EntityState.Modified;
btis.SaveChanges();
}
// TODO: Add update logic here
return RedirectToAction("Scheduler");//view for the controller
}
catch
{
return View();
}
}
what is the reason for this error and how to solve this issues?