Beispiel #1
0
        //todo unitestd
        public void UpdateRole(Role role)
        {
            var checkRole = _roleDao.GetRoleWithoutId(role.Id, role.RoleName);

            if (!checkRole.IsNullOrEmpty())
            {
                throw new BussinessException(ERROR_ROLENAME_EXIST);
            }
            _roleDao.UpdateRole(GetRolePoFromRole(role));
        }