예제 #1
0
 public static string CurrentUser()
 {
     using (SqlConnection con = new SqlConnection(connString, credentials))
     {
         try
         {
             return(DBActions.CurrentUser(con));
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message);
             return(null);
         }
         finally
         {
             con.Close();
         }
     }
 }