private void pay_click(object sender, EventArgs e) { DateTime dt = DateTime.Now; int month = Convert.ToInt32(dt.Month); int result = controllerObj.AddPaidMoney(Convert.ToDecimal(textBox1.Text), month); if (result > 0) { MessageBox.Show("Paid Money Added Successfully"); } else { MessageBox.Show("Failed To Add Paid Money"); } }