The following code is what I\'ve been using to retrieve user information from a sql database.
string userName = LoginUser.UserName; strin
I know this question IS OLD and the answers helped at the moment it was published, but there is an easy way to solve this right now as follows:
if ((dataTableName?.Rows?.Count ?? 0) > 0)