protected void IssueButton_Click(object sender, EventArgs e)
 {
     if (memberIdTextBox.Text != "" && bookIdTextBox.Text != "")
     {
         IssueBook issueBook = new IssueBook();
         Book      book      = new Book();
         Member    member    = new Member();
         member.Id            = Convert.ToInt32(memberIdTextBox.Text);
         issueBook.Member     = member;
         book.BookId          = Convert.ToInt32(bookIdTextBox.Text);
         issueBook.Book       = book;
         issueBook.StartDate  = startDateTextBox.Text;
         issueBook.ReturnDate = returnDateTextBox.Text;
         if (memberManager.GetMemberForIssuedBook(member.Id) == true && bookManager.CheckBookCurrentStock(book.BookId) == true)
         {
             if (!issuedBookManager.CheckIssuedBookExisting(member.Id, book.BookId))
             {
                 string message  = issuedBookManager.IssuedBook(issueBook);
                 string message2 = bookManager.UpdateBookForCurrentStock(book);
                 Response.Write("<script>alert('" + message + "');</script>");
                 GridView1.DataBind();
                 Clean();
             }
             else
             {
                 Response.Write("<script>alert('This Member Already Has The book');</script>");
             }
         }
         else
         {
             Response.Write("<script>alert('Please Insert Book Id and Member Id or Book Stock out');</script>");
         }
     }
     else
     {
         Response.Write("<script>alert('Please Insert Book Id and Member Id');</script>");
     }
 }