Ejemplo n.º 1
0
        private void MinusKudos(AddKudosDTO kudosDTO)
        {
            var hasKudosAdminPermission = HasKudosAdministratorPermission(kudosDTO.KudosLog);
            var hasKudosServiceRequestCategoryPermission = HasKudosServiceRequestCategoryPermissions(kudosDTO.KudosLog);

            _kudosServiceValidator.ValidateKudosMinusPermission(hasKudosAdminPermission || hasKudosServiceRequestCategoryPermission);

            InsertKudosLog(kudosDTO, KudosStatus.Pending);
        }
Ejemplo n.º 2
0
        private async Task MinusKudosAsync(AddKudosDto kudos)
        {
            var hasKudosAdminPermission = await HasKudosAdministratorPermissionAsync(kudos.KudosLog);

            var hasKudosServiceRequestCategoryPermission = await HasKudosServiceRequestCategoryPermissionsAsync();

            _kudosServiceValidator.ValidateKudosMinusPermission(hasKudosAdminPermission || hasKudosServiceRequestCategoryPermission);

            InsertKudosLog(kudos, KudosStatus.Pending);
        }