private void FillRoleCmb() { _roleBLL = new RoleBusiness(_user); cmbRoleID.DataSource = null; cmbRoleID.DataSource = _roleBLL.GetAll(); cmbRoleID.DisplayMember = "Name"; cmbRoleID.ValueMember = "ID"; if (_selectedId > 0) { int roleInt = Convert.ToInt32(_emp.RoleID); Role empRole = _roleBLL.Get(roleInt); cmbRoleID.SelectedItem = empRole; } }
public OutPutDTO GetList() { List <Role> lstResult = roleBusiness.GetAll <Role>(); return(new OutPutDTO(true, Constants.STATUS_CODE.SUCCESS, Constants.STATUS_MESSAGE.SUCCESS, lstResult)); }