diff --git a/Accounting-Time-It-Company/Accounting-Time-It-Company/Forms/FormEmployee.cs b/Accounting-Time-It-Company/Accounting-Time-It-Company/Forms/FormEmployee.cs index 3598cb8..a9b3ce5 100644 --- a/Accounting-Time-It-Company/Accounting-Time-It-Company/Forms/FormEmployee.cs +++ b/Accounting-Time-It-Company/Accounting-Time-It-Company/Forms/FormEmployee.cs @@ -23,7 +23,7 @@ namespace Accounting_Time_It_Company.Forms textBoxName.Text = employee.Name; maskedTextBoxPhone.Text = employee.Phone.ToString(); comboBoxPost.SelectedValue = employee.PostId; - labelAllowance.Text = employee.Allowance.ToString(); + numericUpDownAllowance.Text = employee.Allowance.ToString(); _employeeId = value; } catch (Exception ex) diff --git a/Accounting-Time-It-Company/Accounting-Time-It-Company/Repositories/Implementations/PostRepositories.cs b/Accounting-Time-It-Company/Accounting-Time-It-Company/Repositories/Implementations/PostRepositories.cs index 7b9e6a4..a2a49ee 100644 --- a/Accounting-Time-It-Company/Accounting-Time-It-Company/Repositories/Implementations/PostRepositories.cs +++ b/Accounting-Time-It-Company/Accounting-Time-It-Company/Repositories/Implementations/PostRepositories.cs @@ -54,7 +54,7 @@ public class PostRepositories : IPostRepositories LevelPost=@LevelPost, Wage=@Wage WHERE Id=@id"; - connection.Execute(queryUpdate, post); + connection.Execute(queryUpdate, new { id = post.Id, NamePost = post.NamePost.ToString(), post.LevelPost, post.Wage }); } catch (Exception ex) {