public JsonResult GetSelectOption(int RollCallID) { var option = StuBO.GetStudentsNotInRollCall(RollCallID). Select(d => new { id = d.StudentID, name = d.FullName, code = d.StudentCode }); return(Json(option, JsonRequestBehavior.AllowGet)); }