public int UpdateAuthor(LIB.AuthorDTO author)
        {
            int rs = 0;
            using (SqlTransaction trans = ConnectionManager.Con.BeginTransaction())
            {
                AuthorDAO dao = new AuthorDAO();
                rs = dao.UpdateAuthor(author);

                if (rs == 1)
                {
                    trans.Commit();
                }
                else
                {
                    trans.Rollback();
                }
            }
            return rs;
        }
 public AuthorDTO GetAuthorById(int authorId)
 {
     AuthorDAO dao = new AuthorDAO();
     return dao.GetAuthorById(authorId);
 }
 //BaoTHQ
 public List<AuthorDTO> searchAuthor(string authorName)
 {
     AuthorDAO dao=new AuthorDAO();
     return dao.SearchAuthor(authorName);
 }
 public List<AuthorDTO> GetAllAuthor()
 {
     AuthorDAO dao = new AuthorDAO();
     return dao.GetAllAuthor();
 }