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