private void RoleForm_Load(object sender, EventArgs e)
        {
            _roleBll = new RoleBussiness();
            RefleshGrid();
            AuthoryBussiness _authory = new AuthoryBussiness();

            cmbAuthory.DataSource    = _authory.GetAllBLL();
            cmbAuthory.ValueMember   = "ID";
            cmbAuthory.DisplayMember = "AuthoryName";
        }
Exemple #2
0
        private void EmployeeRegistration_Load(object sender, EventArgs e)
        {
            _employeeBLL = new EmployeeBussiness();
            RoleBussiness _roleBussines = new RoleBussiness();

            cmbRoleID.DataSource    = _roleBussines.GetAllBLL();
            cmbRoleID.DisplayMember = "RoleName";
            cmbRoleID.ValueMember   = "ID";

            RefreshGrid();
        }
        public Framework.Common.CommonBase.DtoContainer GetAll()
        {
            var              result    = securityUserBs.GetAll();
            RoleBussiness    roleBs    = new RoleBussiness();
            GroupBussiness   groupBs   = new GroupBussiness();
            var              roles     = roleBs.GetAll().ToList();
            var              grps      = groupBs.GetAll().ToList();
            UserDtoContainer container = new UserDtoContainer()
            {
                UserDtoList  = result.ToList(),
                RoleDtoList  = roles,
                GroupDtoList = grps
            };

            return(container);
        }
 public RoleController()
 {
     _rb = new RoleBussiness();
 }