private void ButtonNewPayment_Click(object sender, EventArgs e)
        {
            AddOrUpdatePaymentForm addPaymentForm = new AddOrUpdatePaymentForm();

            addPaymentForm.ShowDialog();

            dataGridViewPayment.DataSource = Controller <BeautySalonEntities, PaymentsView> .GetEntitiesNoTracking();

            dataGridViewPayment.Refresh();
        }
        private void ButtonUpdatePayment_Click(object sender, EventArgs e)
        {
            var row = dataGridViewPayment.CurrentRow;

            if (row == null)
            {
                return;
            }

            Payment payment = new Payment()
            {
                PaymentId = (int)row.Cells[10].Value,
                Tax       = (decimal)row.Cells[8].Value,
                Paid      = (decimal)row.Cells[9].Value,
            };

            AddOrUpdatePaymentForm addUpdatePaymentForm = new AddOrUpdatePaymentForm(payment);

            addUpdatePaymentForm.ShowDialog();

            dataGridViewPayment.DataSource = Controller <BeautySalonEntities, PaymentsView> .GetEntitiesNoTracking();

            dataGridViewPayment.Refresh();
        }