private void ViewRole_Load(object sender, EventArgs e) { loRole = new Role(RoleId); txtDescription.Text = loRole.Description; txtRoleName.Text = loRole.RoleName; }
public Role getRole(string pRoleName) { Role _role = new Role(pRoleName); return _role; }
public bool deleteRole(string pRoleName) { Role _role = new Role(pRoleName); return _role.delete(); }
public void updateRole(string pRoleName, string pDescription) { Role _role = new Role(); _role.RoleName = pRoleName; _role.Description = pDescription; _role.update(); }
public void saveRole(string pRoleName, string pDescription) { Role _role = new Role(); _role.RoleName = pRoleName; _role.Description = pDescription; _role.insert(); }
public DataTable getRoles() { Role _role = new Role(); return _role.getRoles(); }