示例#1
0
 //Insert author to tabAuthor
 public int InsertAuthorTabAuthor(string AuthorName)
 {
     try
     {
         return(_tabAuthorTableAdaptater.InsertAuthor(AuthorName));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#2
0
 /// <summary>
 /// Insert register into TabAuthor.
 /// </summary>
 /// <param name="authorName">string authorName</param>
 /// <returns>int rowsAffected</returns>
 /// <exception cref="ex">Exception</exception>
 public int InsertAuthor(string authorName)
 {
     try
     {
         return((int)_tabAuthorTableAdapter.InsertAuthor(authorName));
     }
     catch (Exception ex)
     {
         //Error log simulate
         Console.WriteLine(ex.ToString());
         Console.WriteLine(ex.GetBaseException().ToString());
         throw;
     }
 }