Click here to Skip to main content
15,037,662 members

Comments by Member 15062227 (Top 1 by date)

Member 15062227 2-Feb-21 6:25am View
if (ModelState.IsValid)
List<sublist> items = (new JavaScriptSerializer()).Deserialize<list<sublist>>(selectedItems);
employee.SubManualId = Convert.ToInt32(items[0].id);

return RedirectToAction("Index");
return Json(new { success = true }, JsonRequestBehavior.AllowGet);

I am not paasing id selecteditem that i got error..Now i solved my error