//Reciving Recommended Members Ids From Recommended Committee and Manage Visit In DB public ActionResult RCGetSelMembrIds(TATempAssignMIds ids) { var dbVisitId = db.BI_fatch_visit_max_id(); var visitId=0; foreach (var id in dbVisitId) visitId = id.Value; foreach (var list in RecommendedVisitList.RCVList) { if (list.IsCheck == true) { for (var i = 0; i < ids.MemberIds.Count; i++) { db.BI_ManageVisit(visitId, list.InstituteId, list.ApplicaitonId, ids.MemberIds[i], list.VisitDate); } } } db.SaveChanges(); RecommendedVisitList.RCVList.Clear(); // return RedirectToAction("AffiliationAdminSide","ApplicationForm"); return Json(new { success = true, responseText = "Grant Successfully" }, JsonRequestBehavior.AllowGet); }