HBM.UserManagement.Roles.Select C# (CSharp) Méthode

Select() public méthode

public Select ( ) : Roles
Résultat Roles
        public Roles Select()
        {
            return HBM.Utility.Generic.Get<Roles>(this.RolesId, this.CompanyId);
        }

Usage Example

        protected void DisplayData()
        {
            try
            {
                int           currentRoleId = Convert.ToInt32(this.hdnRoleId.Value);
                UserMan.Roles RolesObj      = new UserMan.Roles();
                RolesObj.RolesId             = currentRoleId;
                RolesObj.CompanyId           = Master.CurrentCompany.CompanyId;
                RolesObj                     = RolesObj.Select();
                this.txtRoleName.Text        = RolesObj.RoleName;
                this.txtRoleDescription.Text = RolesObj.RoleDescription;

                UserMan.Rights RightsObj = new UserMan.Rights();
                RightsObj.RolesId   = RolesObj.RolesId;
                gvRights.DataSource = RightsObj.SelectByRolesId();
                gvRights.DataBind();
            }
            catch (System.Exception)
            {
            }
        }
All Usage Examples Of HBM.UserManagement.Roles::Select