/// <summary> /// Select count in User table by userName. /// The count search for user name despite the name of the actual userID. /// </summary> /// <param name="userName">string userName</param> /// <param name="userID">int userID</param> /// <returns>int countResult</returns> /// <exception cref="ex">Exception</exception> public int SelectCountUserByName(string userName, int userID) { try { return((int)_tabUserTableAdapter.SelectCountUserByName(userName, userID)); } catch (Exception ex) { //Error log simulate Console.WriteLine(ex.ToString()); Console.WriteLine(ex.GetBaseException().ToString()); throw; } }