public string updateReferrals(int patientId, int patientMasterVisitId, int createdBy, int patientReferred, int appointmentsAttended, string experience, int RefId) { try { var REFS = new AdherenceLogic(); Result = REFS.updateReferrals(patientId, patientMasterVisitId, createdBy, patientReferred, appointmentsAttended, experience, RefId); if (Result > 0) { Msg = "Referrals and networks updated"; } } catch (Exception e) { Msg = e.Message; } return(Msg); }