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