public int GetNumberToBeRegistered(string settingLookUp) { try { var numberToBeRegistered = _storedProcedure.GetNumberToBeRegistered(settingLookUp); return(numberToBeRegistered); } catch (Exception ex) { var userId = "Enroll User"; string errorMessage = "GetNumberToBeRegistered(): " + ex.Message; _unitOfWork.AuditTrail(errorMessage, userId); return(0); } }