public ActionResult AddFamilySocial(Common.FamilySocial fs, string PatientIds, string[] incomeItems) { BusinessLayer.PatientsBL patient = new BusinessLayer.PatientsBL(); try { fs.PatientId_fk = Int32.Parse(PatientIds); patient.AddFamilySocial(fs); if (incomeItems != null) { for (int i = 0; i < incomeItems.Length; i++) { patient.AddIncome(incomeItems[i], fs.FamilySocialId); } } } catch (Exception ex) { throw ex; } return(Json(null, JsonRequestBehavior.AllowGet)); }