Exemplo n.º 1
0
        public async Task <bool> DeleteSystemRole(long sid)
        {
            var systemRole = await _systemManagementService.GetSystemRole(sid);

            if (systemRole == null)
            {
                return(false);
            }
            _systemManagementService.DeleteSystemRole(systemRole);
            if (await _systemManagementService.SaveAll())
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }