Пример #1
0
 /*
  * Method the get add user information to he database by calling a store procedure
  */
 public void addUser(string userID, string ufirstName, string uLastName, string uMiddleName, string uCountry, string uPicturePath, ref bool dbfails)
 {
     try
     {
         // call the ctore procedure to sace to the database
         dbContext.Client_Add(userID, ufirstName, uLastName, uMiddleName, uCountry, uPicturePath);
     }
     catch (Exception ex)
     {
         dbfails = true; // variable to indicate occurence of  an exception
     }
 }