public bool InsertPCMessage(string cardNo, string slot, string stand, int?handlepulls, string ratingInterval, string displayMessage, char?lockType, string ackType, int breakPeriodInterval, bool pcEnrolled) { try { using (ExCommsSQLDataAccess DataContext = this.GetDataContext()) { if (DataContext.usp_InsertPCNotificationResponse(cardNo, slot, stand, handlepulls, ratingInterval, displayMessage, lockType, ackType, breakPeriodInterval, pcEnrolled) > -1) { return(true); } } } catch (Exception ex) { Log.Exception(ex); } return(false); }