Пример #1
0
        private void AddButton_Click(object sender, RoutedEventArgs e)
        {
            Operator op = new Operator(nameTextBox.Text, contactNoTextBox.Text, emailTextBox.Text, addressTextBox.Text, Convert.ToDouble(initialSalaryTextBox.Text), Convert.ToDateTime(joinDatePicker.Text));

            OperatorService operatorService = new OperatorService();

            operatorService.AddOperator(op);
            MessageBox.Show("Operator Added Successfully \nID : " + op.Id + " \nPassword : "******" \n *Please Keep Id and Password in mind", "Successful", MessageBoxButton.OK, MessageBoxImage.Information);
            LoadData();
        }
Пример #2
0
 public void AddOperator([FromBody] Operator op)
 {
     service.AddOperator(op);
 }