Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
private void button1_Click(object sender, EventArgs e) { int roleId = 0; int.TryParse(txtRoleId.Text, out roleId); var role_obj = new Role { Id = roleId, Name = txtRoleName.Text }; var roleDao = new RoleDao(); roleDao.SaveRole(role_obj); ShowRoles(); }