private void MinusKudos(AddKudosDTO kudosDTO) { var hasKudosAdminPermission = HasKudosAdministratorPermission(kudosDTO.KudosLog); var hasKudosServiceRequestCategoryPermission = HasKudosServiceRequestCategoryPermissions(kudosDTO.KudosLog); _kudosServiceValidator.ValidateKudosMinusPermission(hasKudosAdminPermission || hasKudosServiceRequestCategoryPermission); InsertKudosLog(kudosDTO, KudosStatus.Pending); }
private async Task MinusKudosAsync(AddKudosDto kudos) { var hasKudosAdminPermission = await HasKudosAdministratorPermissionAsync(kudos.KudosLog); var hasKudosServiceRequestCategoryPermission = await HasKudosServiceRequestCategoryPermissionsAsync(); _kudosServiceValidator.ValidateKudosMinusPermission(hasKudosAdminPermission || hasKudosServiceRequestCategoryPermission); InsertKudosLog(kudos, KudosStatus.Pending); }