public ActionResult AddEquipment(Common.Equipment e, string PatientIds) { BusinessLayer.PatientsBL patient = new BusinessLayer.PatientsBL(); try { e.PatientId_fk = Int32.Parse(PatientIds); patient.AddEquipment(e); } catch (Exception ex) { throw ex; } return(Json(null, JsonRequestBehavior.AllowGet)); }